Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Oct 2023 14:14:54 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 076804781f89 - main - ports-mgmt/portconfig: allow to build with PIE
Message-ID:  <202310121414.39CEEsia073014@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=076804781f89ca075b2358cf459c24c817321482

commit 076804781f89ca075b2358cf459c24c817321482
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2023-10-12 14:09:52 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2023-10-12 14:14:52 +0000

    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
---
 ports-mgmt/portconfig/files/patch-Makefile | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310121414.39CEEsia073014>