aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2021-10-05 20:54:44 +0000
committerCy Schubert <cy@FreeBSD.org>2021-10-05 21:01:44 +0000
commitb581f84ea517c22d023ccff2150e15d5d68332c8 (patch)
treea2a9a47d00677a9d661eed7988fd4b1325ecbc6d
parentf7d815bded186367af817f0d1a34c24f7cd7b7d5 (diff)
downloadports-b581f84ea517c22d023ccff2150e15d5d68332c8.tar.gz
ports-b581f84ea517c22d023ccff2150e15d5d68332c8.zip
comms/hcidump: Fix a link error
Fix the following by adding -fPIE to CFLAGS: /usr/local/bin/x86_64-unknown-freebsd14.0-ld: ../parser/libparser.a(hidp.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/local/bin/x86_64-unknown-freebsd14.0-ld: final link failed: nonrepresentable section on output cc: error: linker command failed with exit code 1 (use -v to see invocation) *** [hcidump] Error code 1 MFH: 2021Q4
-rw-r--r--comms/hcidump/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/comms/hcidump/Makefile b/comms/hcidump/Makefile
index ba1a2d912fd5..881d20bcee27 100644
--- a/comms/hcidump/Makefile
+++ b/comms/hcidump/Makefile
@@ -16,7 +16,7 @@ USES= uidfix
WRKSRC= ${WRKDIR}/${PORTNAME}
INSTALL_WRKSRC= ${WRKSRC}/${PORTNAME}
-CFLAGS+= -DL2CAP_SOCKET_CHECKED=yes
+CFLAGS+= -DL2CAP_SOCKET_CHECKED=yes -fPIE
PLIST_FILES= bin/hcidump man/man1/hcidump.1.gz