Added linker flags that allow bundling libgmp.so with the binary release on Linux.
parent
07bbb688e9
commit
41c38d982d
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue