clang compatibility

BodgeMaster-unfinished
BodgeMaster 2022-06-27 04:48:21 +02:00
parent 5ea835dbb5
commit 82773f3429
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ CXX_WITH_FLAGS="$CXX $CXXFLAGS"
echo "Building libs..." echo "Building libs..."
mkdir -pv bin/lib mkdir -pv bin/lib
for lib in $(find ./src/lib -name "*.cpp"); do for lib in $(find ./src/lib -name "*.cpp"); do
COMPILE_COMMAND="$CXX_WITH_FLAGS -shared -o $(sed -e 's/^.\/src/.\/bin/;s/cpp$/so/' <<< $lib) $lib" COMPILE_COMMAND="$CXX_WITH_FLAGS -fPIC -shared -o $(sed -e 's/^.\/src/.\/bin/;s/cpp$/so/' <<< $lib) $lib"
echo $COMPILE_COMMAND echo $COMPILE_COMMAND
$COMPILE_COMMAND & $COMPILE_COMMAND &
done done