diff options
author | delphij <delphij@FreeBSD.org> | 2015-09-13 15:55:25 +0800 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2015-09-13 15:55:25 +0800 |
commit | 3039bb892d90e7fb61225464123049372aaeb249 (patch) | |
tree | 3a620e26eb004cc2ffed9c105c10b70a976d81e5 /net | |
parent | 526544c7f0e7e412f4f05975a956376f6f5dbff1 (diff) | |
download | freebsd-ports-gnome-3039bb892d90e7fb61225464123049372aaeb249.tar.gz freebsd-ports-gnome-3039bb892d90e7fb61225464123049372aaeb249.tar.zst freebsd-ports-gnome-3039bb892d90e7fb61225464123049372aaeb249.zip |
Define NDEBUG and disable debugging when DEBUG is disabled, and do so for
both client and server.
Diffstat (limited to 'net')
-rw-r--r-- | net/openldap24-server/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/net/openldap24-server/Makefile b/net/openldap24-server/Makefile index 0593cd69ad41..c87331a0f3dc 100644 --- a/net/openldap24-server/Makefile +++ b/net/openldap24-server/Makefile @@ -56,8 +56,8 @@ WANT_OPENLDAP_VER?= 24 BROKEN= incompatible OpenLDAP version: ${WANT_OPENLDAP_VER} .endif -PORTREVISION_CLIENT= 1 -PORTREVISION_SERVER= 1 +PORTREVISION_CLIENT= 2 +PORTREVISION_SERVER= 2 OPENLDAP_SHLIB_MAJOR= 2 OPENLDAP_SHLIB_MINOR= 10.5 OPENLDAP_MAJOR= ${DISTVERSION:R} @@ -189,6 +189,15 @@ CONFIGURE_ARGS= --with-threads=posix \ # XXX FreeBSD does not implement O_DSYNC and fdatasync at this time. CFLAGS+= -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync +.if ${PORT_OPTIONS:MDEBUG} +CONFIGURE_ARGS+= --enable-debug=yes +.else +CONFIGURE_ARGS+= --disable-debug +CFLAGS+= -DNDEBUG +.endif + +MAKE_ENV+= STRIP=${STRIP} + .if !${PORT_OPTIONS:MFETCH} CONFIGURE_ARGS+= --without-fetch .endif @@ -274,12 +283,6 @@ CONFIGURE_ARGS+= --enable-constraint=${OVERLAY_ENABLE} CONFIGURE_ARGS+= --enable-dds=${OVERLAY_ENABLE} .endif -.if ${PORT_OPTIONS:MDEBUG} -CONFIGURE_ARGS+= --enable-debug=yes -.endif - -MAKE_ENV+= STRIP=${STRIP} - .if ${PORT_OPTIONS:MDEREF} CONFIGURE_ARGS+= --enable-deref=${OVERLAY_ENABLE} .endif |