Added linker flags that allow bundling libgmp.so with the binary release on Linux.

master
mikaelh 2013-07-25 15:10:24 +03:00
parent 07bbb688e9
commit 41c38d982d
3 changed files with 12 additions and 0 deletions

View File

@ -35,6 +35,9 @@ contains(RELEASE, 1) {
!win32:!macx {
# Linux: static link and extra security (see: https://wiki.debian.org/Hardening)
LIBS += -Wl,-Bstatic -Wl,-z,relro -Wl,-z,now
# Linux: Enable bundling libgmp.so with the binary
LIBS += -Wl,-rpath,\\\$$ORIGIN
}
}

View File

@ -35,6 +35,9 @@ contains(RELEASE, 1) {
!win32:!macx {
# Linux: static link and extra security (see: https://wiki.debian.org/Hardening)
LIBS += -Wl,-Bstatic -Wl,-z,relro -Wl,-z,now
# Linux: Enable bundling libgmp.so with the binary
LIBS += -Wl,-rpath,\\\$$ORIGIN
}
}

View File

@ -61,6 +61,12 @@ ifneq (${USE_IPV6}, -)
DEFS += -DUSE_IPV6=$(USE_IPV6)
endif
ifeq ($(RELEASE), 1)
# Linux: Enable bundling libgmp.so with the binary
LIBS += -Wl,-rpath,\$$ORIGIN
endif
LIBS+= \
-Wl,-B$(LMODE2) \
-l z \