Skip to content

Commit 306493a

Browse files
committed
statically link glibc
1 parent aa3c018 commit 306493a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ NVSHARE_TAG := $(shell echo $(NVSHARE_COMMIT) | cut -c 1-8)
1717
CC = gcc
1818
GENERAL_LDFLAGS = -Wl,-z,defs -Wl,-z,relro -Wl,-z,now -Wl,--no-undefined
1919
LIBNVSHARE_LDFLAGS = -shared -Wl,-soname=libnvshare.so -Wl,--version-script=libnvshare-symbols.ld -Wl,--exclude-libs,ALL
20-
LIBNVSHARE_LDLIBS = -ldl -lpthread
20+
LIBNVSHARE_LDLIBS = -ldl -lpthread -static-libgcc -static-libstdc++
2121
SCHEDULER_LDLIBS = -lpthread
2222
CFLAGS = -O3 -Wall -Wextra -std=gnu99 -fPIC -D_FORTIFY_SOURCE=2
2323

0 commit comments

Comments
 (0)