Browse Source

Compile fmt and sfml libraries also with -fPIC

master
rayburgemeestre 3 years ago
parent
commit
cae1979b1e
2 changed files with 8 additions and 8 deletions
  1. +1
    -1
      fmt/Makefile
  2. +7
    -7
      sfml/Makefile

+ 1
- 1
fmt/Makefile View File

apt-get update && apt-get install libz-dev -y && \ apt-get update && apt-get install libz-dev -y && \
pushd fmt && \ pushd fmt && \
mkdir build && pushd build && \ mkdir build && pushd build && \
CXX=$$(which c++) cmake -DCMAKE_INSTALL_PREFIX=$$PWD/fmt_out .. && \
CXX=$$(which c++) cmake -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX=$$PWD/fmt_out .. && \
make -j $$(nproc) && \ make -j $$(nproc) && \
make install make install



+ 7
- 7
sfml/Makefile View File

SHELL:=/bin/bash SHELL:=/bin/bash


ubuntu1804:
git clone https://github.com/SFML/SFML.git
pushd SFML && git checkout 2.5.x # && patch -p1 < ../patch.txt
bash ../ubuntu1804.sh make impl
make package-ubuntu1804

ubuntu2004: ubuntu2004:
git clone https://github.com/SFML/SFML.git git clone https://github.com/SFML/SFML.git
pushd SFML && git checkout 2.5.x # && patch -p1 < ../patch.txt pushd SFML && git checkout 2.5.x # && patch -p1 < ../patch.txt
make package-ubuntu2004 make package-ubuntu2004
bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions


ubuntu1804:
git clone https://github.com/SFML/SFML.git
pushd SFML && git checkout 2.5.x # && patch -p1 < ../patch.txt
bash ../ubuntu1804.sh make impl
make package-ubuntu1804

impl: impl:
# copy & paste from allegro5 # copy & paste from allegro5
apt-get update apt-get update
switch-to-latest-clang switch-to-latest-clang
# static build # static build
pushd SFML && \ pushd SFML && \
cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/sfml_static -DBUILD_SHARED_LIBS=false . && \
cmake -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/sfml_static -DBUILD_SHARED_LIBS=false . && \
make -j $$(nproc) && \ make -j $$(nproc) && \
make install make install



Loading…
Cancel
Save