diff --git a/procedures/make_custom_so_cpp.sh b/procedures/make_custom_so_cpp.sh index d906881485..52e1d4387f 100755 --- a/procedures/make_custom_so_cpp.sh +++ b/procedures/make_custom_so_cpp.sh @@ -8,7 +8,7 @@ LIBLGRAPH="../build/output/liblgraph.so" if [[ "$OSTYPE" == "linux-gnu"* ]]; then - g++ -fno-gnu-unique -fPIC -g --std=c++17 -I$INCLUDE_DIR -rdynamic -O3 -fopenmp -o ${APP}.so $PROCEDURE_PATH/${APP}_procedure.cpp $APP_PATH/${APP}_core.cpp $LIBLGRAPH -shared + g++ -fno-gnu-unique -fPIC -g --std=c++17 -I$INCLUDE_DIR -rdynamic -O3 -fopenmp -static-libstdc++ -static-libgcc -o ${APP}.so $PROCEDURE_PATH/${APP}_procedure.cpp $APP_PATH/${APP}_core.cpp $LIBLGRAPH -shared elif [[ "$OSTYPE" == "darwin"* ]]; then clang++ -stdlib=libc++ -fPIC -g --std=c++17 -I$INCLUDE_DIR -rdynamic -O3 -Xpreprocessor -fopenmp -lomp -o ${APP}.so $PROCEDURE_PATH/${APP}_procedure.cpp $APP_PATH/${APP}_core.cpp $LIBLGRAPH -shared fi diff --git a/procedures/make_so_cpp.sh b/procedures/make_so_cpp.sh index 6afa629be5..6e8fa30a5d 100755 --- a/procedures/make_so_cpp.sh +++ b/procedures/make_so_cpp.sh @@ -7,7 +7,7 @@ LIBLGRAPH="../build/output/liblgraph.so" if [[ "$OSTYPE" == "linux-gnu"* ]]; then - g++ -fno-gnu-unique -fPIC -g --std=c++17 -I$INCLUDE_DIR -rdynamic -O3 -fopenmp -o ${APP}.so $APP_PATH/${APP}_procedure.cpp $APP_PATH/${APP}_core.cpp $LIBLGRAPH -shared + g++ -fno-gnu-unique -fPIC -g --std=c++17 -I$INCLUDE_DIR -rdynamic -O3 -fopenmp -static-libstdc++ -static-libgcc -o ${APP}.so $APP_PATH/${APP}_procedure.cpp $APP_PATH/${APP}_core.cpp $LIBLGRAPH -shared elif [[ "$OSTYPE" == "darwin"* ]]; then clang++ -stdlib=libc++ -fPIC -g --std=c++17 -I$INCLUDE_DIR -rdynamic -O3 -Xpreprocessor -fopenmp -lomp -o ${APP}.so $APP_PATH/${APP}_procedure.cpp $APP_PATH/${APP}_core.cpp $LIBLGRAPH -shared fi