mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
- Unbreak on non-std hardware: Use -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS
on all archs except alpha. - Pass CC through while here. PR: ports/65878 Submitted by: Tim Robbins
This commit is contained in:
parent
ae94f7e298
commit
de1c0ade57
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108602
@ -17,14 +17,12 @@ DISTNAME= ElectricFence-${PORTVERSION}
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Debugging malloc() that uses the VM hardware to detect buffer overruns
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64"
|
||||
BROKEN= "Does not compile on ${MACHINE_ARCH}"
|
||||
.endif
|
||||
|
||||
INSTALLS_SHLIB= yes
|
||||
CFLAGS+= -D__USE_BSD
|
||||
MAN3= efence.3
|
||||
|
||||
MAKE_ARGS= CC="${CC}"
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/libefence.a ${PREFIX}/lib
|
||||
${INSTALL_DATA} ${WRKSRC}/libefence.so.0.0 ${PREFIX}/lib/libefence.so.0
|
||||
|
@ -6,7 +6,7 @@
|
||||
-LIBS= -lpthread
|
||||
+#CFLAGS= -g -DUSE_SEMAPHORE $(PIC)
|
||||
+CFLAGS+= -g $(PIC)
|
||||
+.if ${MACHINE_ARCH} == "i386"
|
||||
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64"
|
||||
+CFLAGS+= -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS
|
||||
+.endif
|
||||
+#CFLAGS+= -pthread
|
||||
|
Loading…
Reference in New Issue
Block a user