From ed175fb9971711c9db01ade0aba8ae9d26ebfa77 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sat, 23 Nov 2013 06:43:14 +0000 Subject: [PATCH] Move WITH_DEBUG check below b.p.m so it works with WITH_DEBUG_PORTS Approved by: portmgr (bapt, maintainer) --- ports-mgmt/pkg-devel/Makefile | 7 ++++--- ports-mgmt/pkg/Makefile | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ports-mgmt/pkg-devel/Makefile b/ports-mgmt/pkg-devel/Makefile index 2f84b3f5a2f5..0b3592bf07a6 100644 --- a/ports-mgmt/pkg-devel/Makefile +++ b/ports-mgmt/pkg-devel/Makefile @@ -23,9 +23,6 @@ USES= uidfix MAKE_ENV+= WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null \ PORTREVISION=${PORTREVISION} -.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) -MAKE_ARGS+= DEBUG_FLAGS="${DEBUG_FLAGS}" -.endif # Use a submake as 'deinstall install' needs to reevaluate PKG_CMD # so that pkg-static is used from the wrkdir @@ -33,6 +30,10 @@ USE_SUBMAKE= yes .include +.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) +MAKE_ARGS+= DEBUG_FLAGS="${DEBUG_FLAGS}" +.endif + .if defined(WITH_PKGNG) .if ${WITH_PKGNG} != devel NO_LATEST_LINK= yes diff --git a/ports-mgmt/pkg/Makefile b/ports-mgmt/pkg/Makefile index 375bb4b6f086..febd8db768fc 100644 --- a/ports-mgmt/pkg/Makefile +++ b/ports-mgmt/pkg/Makefile @@ -24,9 +24,6 @@ SHEBANG_FILES= scripts/completion/_pkg.bash.in MAKE_ENV+= WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null \ PORTREVISION=${PORTREVISION} -.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) -MAKE_ARGS+= DEBUG_FLAGS="${DEBUG_FLAGS}" -.endif # Use a submake as 'deinstall install' needs to reevaluate PKG_CMD # so that pkg-static is used from the wrkdir @@ -34,6 +31,10 @@ USE_SUBMAKE= yes .include +.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) +MAKE_ARGS+= DEBUG_FLAGS="${DEBUG_FLAGS}" +.endif + .if defined(WITH_PKGNG) .if ${WITH_PKGNG} == devel NO_LATEST_LINK= yes