diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2023-10-12 14:09:52 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2023-10-12 14:14:52 +0000 |
commit | 076804781f89ca075b2358cf459c24c817321482 (patch) | |
tree | b43e154784b89b9fa1784cdcb2f3cb51df6a1895 | |
parent | 4dee77e291a24e0f77af08d789ac0080bd981b6a (diff) | |
download | ports-076804781f89ca075b2358cf459c24c817321482.tar.gz ports-076804781f89ca075b2358cf459c24c817321482.zip |
ports-mgmt/portconfig: allow to build with PIE
portsconfig is a dynamic binary which static link to all the
dependencies, which causes a problem when it links with base provided
static libraries as they are not PIE friendly.
PR: 274429
Reported by: netchild
-rw-r--r-- | ports-mgmt/portconfig/files/patch-Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ports-mgmt/portconfig/files/patch-Makefile b/ports-mgmt/portconfig/files/patch-Makefile new file mode 100644 index 000000000000..afd718fdab06 --- /dev/null +++ b/ports-mgmt/portconfig/files/patch-Makefile @@ -0,0 +1,13 @@ +--- Makefile.orig 2023-08-04 15:18:54 UTC ++++ Makefile +@@ -9,8 +9,8 @@ LDFLAGS+= -L/usr/local/lib -Wl,-Bstatic -v -Wl,-whole- + + CFLAGS+= -I/usr/local/include -std=gnu99 -Wall -Wextra + LDFLAGS+= -L/usr/local/lib -Wl,-Bstatic -v -Wl,-whole-archive -lbsddialog \ +- -Wl,-no-whole-archive -L/usr/lib -lncursesw -ltinfow \ +- -Wl,-Bdynamic -Wl,--export-dynamic ++ -Wl,-no-whole-archive -Wl,-Bdynamic -Wl,--export-dynamic -L/usr/lib \ ++ -lncursesw -ltinfow + + # `make -DDEBUG` + .if defined(DEBUG) |