diff options
author | Cy Schubert <cy@FreeBSD.org> | 2021-10-05 20:54:44 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2021-10-07 17:23:43 +0000 |
commit | 4028a1e7dd9d5e4876d50c719fb576abca3f06c2 (patch) | |
tree | 55910f4b437140b8ec3261eb3a27f12859e6e814 /comms | |
parent | 4c4f0e624c8251a9e2eea6e1d912426355b1475e (diff) | |
download | ports-4028a1e7dd9d5e4876d50c719fb576abca3f06c2.tar.gz ports-4028a1e7dd9d5e4876d50c719fb576abca3f06c2.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
(cherry picked from commit b581f84ea517c22d023ccff2150e15d5d68332c8)
Diffstat (limited to 'comms')
-rw-r--r-- | comms/hcidump/Makefile | 2 |
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 |