瀏覽代碼

Compile fmt and sfml libraries also with -fPIC

master
rayburgemeestre 3 年之前
父節點
當前提交
cae1979b1e
共有 2 個檔案被更改,包括 8 行新增8 行删除
  1. +1
    -1
      fmt/Makefile
  2. +7
    -7
      sfml/Makefile

+ 1
- 1
fmt/Makefile 查看文件

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 查看文件

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…
取消
儲存