Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P706
Command-Line Input
Active
Public
Actions
Authored by
ngie
on Fri, Mar 20, 8:22 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F148894767: Command-Line Input
Fri, Mar 20, 8:22 PM
2026-03-20 20:22:33 (UTC+0)
Subscribers
None
diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile
index 738de3479987..9d484e9d480c 100644
--- a/secure/lib/libcrypto/Makefile
+++ b/secure/lib/libcrypto/Makefile
@@ -687,12 +687,6 @@ SUBDIR.${MK_TESTS}= tests
.include <bsd.lib.mk>
-.if ${MACHINE} == "powerpc"
-# Work around "relocation R_PPC_GOT16 out of range" errors
-PICFLAG= -fPIC
-.endif
-PICFLAG+= -DOPENSSL_PIC
-
.if defined(ASM_${MACHINE_CPUARCH})
.PATH: ${SRCTOP}/sys/crypto/openssl/${MACHINE_CPUARCH}
.if defined(ASM_amd64)
diff --git a/secure/lib/libcrypto/Makefile.inc b/secure/lib/libcrypto/Makefile.inc
index 73c650d590ff..8f22d501e005 100644
--- a/secure/lib/libcrypto/Makefile.inc
+++ b/secure/lib/libcrypto/Makefile.inc
@@ -12,6 +12,9 @@ CFLAGS+= -I${LCRYPTO_SRC}/providers/common/include
CFLAGS+= -I${LCRYPTO_SRC}/providers/fips/include
CFLAGS+= -I${LCRYPTO_SRC}/providers/implementations/include
+PICFLAG= -fPIC
+PICFLAG+= -DOPENSSL_PIC
+
.SUFFIXES: .pc
.PATH.pc: ${LCRYPTO_SRC}/exporters
Event Timeline
ngie
created this paste.
Fri, Mar 20, 8:22 PM
2026-03-20 20:22:33 (UTC+0)
Log In to Comment