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

@@ -11,7 +11,7 @@ impl:
apt-get update && apt-get install libz-dev -y && \
pushd fmt && \
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 install


+ 7
- 7
sfml/Makefile View File

@@ -1,11 +1,5 @@
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:
git clone https://github.com/SFML/SFML.git
pushd SFML && git checkout 2.5.x # && patch -p1 < ../patch.txt
@@ -13,6 +7,12 @@ ubuntu2004:
make package-ubuntu2004
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:
# copy & paste from allegro5
apt-get update
@@ -26,7 +26,7 @@ impl:
switch-to-latest-clang
# static build
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 install


Loading…
Cancel
Save