Explicitly disable "soft syscalls" when compiling WITH_HARD_SYSCALLS.
This commit is contained in:
parent
6ead93ac15
commit
bbdc6fa005
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=137649
@ -18,16 +18,11 @@ INSTALLS_SHLIB= yes
|
||||
LDCONFIG_DIRS= %%PREFIX%%/lib/pth
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ARGS= --enable-pthread \
|
||||
--enable-optimize \
|
||||
CONFIGURE_ARGS= --enable-optimize \
|
||||
--enable-batch \
|
||||
--includedir="${PREFIX}/include/pth" \
|
||||
--libdir="${PREFIX}/lib/pth"
|
||||
|
||||
.if !defined(WITH_SYSCALL_HARD)
|
||||
CONFIGURE_ARGS+= --enable-syscall-soft
|
||||
.endif
|
||||
|
||||
USE_REINPLACE= yes
|
||||
|
||||
MAN1= pth-config.1 pthread-config.1
|
||||
@ -36,8 +31,25 @@ MAN3= pth.3 pthread.3
|
||||
OPTIONS= OPTIMIZED_CFLAGS "Build with optimized CFLAGS" on \
|
||||
SYSCALL_HARD "Build with hard syscalls" off
|
||||
|
||||
|
||||
#OPTIONS+= SYSCALL_SOFT_DISABLED "Disable soft syscalls" off \
|
||||
# SYSCALL_SOFT "Disable soft syscalls" on
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_SYSCALL_HARD)
|
||||
CONFIGURE_ARGS+= --enable-syscall-hard --disable-syscall-soft
|
||||
.else
|
||||
CONFIGURE_ARGS+= --enable-syscall-soft
|
||||
CONFIGURE_ARGS+= --enable-pthread
|
||||
.endif
|
||||
|
||||
#.if defined(WITH_SYSCALL_SOFT_DISABLED)
|
||||
#CONFIGURE_ARGS+= --disable-syscall-soft
|
||||
#.else
|
||||
#CONFIGURE_ARGS+= --enable-syscall-soft
|
||||
#.endif
|
||||
|
||||
post-patch:
|
||||
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
|
||||
@${REINPLACE_CMD} -e \
|
||||
|
Loading…
Reference in New Issue
Block a user