Skip to content

Commit

Permalink
-static-libstdc++ only on musl
Browse files Browse the repository at this point in the history
  • Loading branch information
Jongy committed Jan 24, 2023
1 parent c8c72a1 commit 49080a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ $(PACKAGE_DIR): build/$(LIB_PROFILER) build/$(JATTACH) $(FDTRANSFER_BIN) \
build:
mkdir -p build

PROFILER_STATIC_FLAGS=-static-libstdc++ -static-libgcc
PROFILER_STATIC_FLAGS=-static-libgcc
ifeq ($(OS_TAG),linux-musl)
PROFILER_STATIC_FLAGS+= -static-libstdc++
endif

build/$(LIB_PROFILER_SO): $(SOURCES) $(HEADERS) $(RESOURCES) $(JAVA_HELPER_CLASSES)
ifeq ($(MERGE),true)
for f in src/*.cpp; do echo '#include "'$$f'"'; done |\
Expand Down

0 comments on commit 49080a2

Please sign in to comment.