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 b581f84ea5)
This commit is contained in:
Cy Schubert 2021-10-05 13:54:44 -07:00
parent 4c4f0e624c
commit 4028a1e7dd

View File

@ -16,7 +16,7 @@ USES= uidfix
WRKSRC= ${WRKDIR}/${PORTNAME} WRKSRC= ${WRKDIR}/${PORTNAME}
INSTALL_WRKSRC= ${WRKSRC}/${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 PLIST_FILES= bin/hcidump man/man1/hcidump.1.gz