Skip to content

Commit

Permalink
Use linux fpic
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Nov 26, 2023
1 parent 2c9588c commit babb5a8
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 23 deletions.
21 changes: 0 additions & 21 deletions src/build-common.sh

This file was deleted.

23 changes: 22 additions & 1 deletion src/linux-common.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
chmod +x src/build-common.sh && src/build-common.sh
(
cd src/bullet3/build

cmake \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_BULLET2_DEMOS=OFF \
-DBUILD_OPENGL3_DEMOS=OFF \
-DBUILD_CPU_DEMOS=OFF \
-DBUILD_UNIT_TESTS=OFF \
-DBUILD_CLSOCKET=OFF \
-DBUILD_ENET=OFF \
-DBUILD_EXTRAS=OFF \
-DENABLE_VHACD=OFF \
-DUSE_GLUT=OFF \
-DINSTALL_LIBS=ON \
-DUSE_GRAPHICAL_BENCHMARK=OFF \
-DUSE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD=OFF \
..

cmake --build . --config Release
)

cp src/bullet3/build/src/Bullet3Collision/libBullet3Collision.a src/build/libBullet3Collision.a
cp src/bullet3/build/src/Bullet3Common/libBullet3Common.a src/build/libBullet3Common.a
Expand Down
22 changes: 21 additions & 1 deletion src/osx.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
chmod +x src/build-common.sh && src/build-common.sh
(
cd src/bullet3/build

cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_BULLET2_DEMOS=OFF \
-DBUILD_OPENGL3_DEMOS=OFF \
-DBUILD_CPU_DEMOS=OFF \
-DBUILD_UNIT_TESTS=OFF \
-DBUILD_CLSOCKET=OFF \
-DBUILD_ENET=OFF \
-DBUILD_EXTRAS=OFF \
-DENABLE_VHACD=OFF \
-DUSE_GLUT=OFF \
-DINSTALL_LIBS=ON \
-DUSE_GRAPHICAL_BENCHMARK=OFF \
-DUSE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD=OFF \
..

cmake --build . --config Release
)

cp src/bullet3/build/src/Bullet3Collision/libBullet3Collision.a src/build/libBullet3Collision.a
cp src/bullet3/build/src/Bullet3Common/libBullet3Common.a src/build/libBullet3Common.a
Expand Down

0 comments on commit babb5a8

Please sign in to comment.