diff options
author | avilla <avilla@FreeBSD.org> | 2011-10-17 06:51:26 +0800 |
---|---|---|
committer | avilla <avilla@FreeBSD.org> | 2011-10-17 06:51:26 +0800 |
commit | 00c60ffc2dd87408bec24d7bbd4e05143c328c46 (patch) | |
tree | bab66b0dddf9719fc4f6a087ba7649a33a2205d4 /Mk | |
parent | fa29d793d5cf2e36ccf895366d0e19bf71602b78 (diff) | |
download | freebsd-ports-gnome-00c60ffc2dd87408bec24d7bbd4e05143c328c46.tar.gz freebsd-ports-gnome-00c60ffc2dd87408bec24d7bbd4e05143c328c46.tar.zst freebsd-ports-gnome-00c60ffc2dd87408bec24d7bbd4e05143c328c46.zip |
- Distinguish STRIP from WITH_DEBUG.
PR: 156543
Submitted by: Pan Tsu <inyaoo@gmail.com>
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.cmake.mk | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Mk/bsd.cmake.mk b/Mk/bsd.cmake.mk index eeb895b6e1ec..29d39d484402 100644 --- a/Mk/bsd.cmake.mk +++ b/Mk/bsd.cmake.mk @@ -58,11 +58,11 @@ CMAKE_ARGS+= -DCMAKE_C_COMPILER:STRING="${CC}" \ -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \ -DCMAKE_CXX_FLAGS_DEBUG:STRING="${CXXFLAGS}" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="${CXXFLAGS}" \ + -DCMAKE_EXE_LINKER_FLAGS:STRING="${LDFLAGS}" \ + -DCMAKE_MODULE_LINKER_FLAGS:STRING="${LDFLAGS}" \ + -DCMAKE_SHARED_LINKER_FLAGS:STRING="${LDFLAGS}" \ -DCMAKE_INSTALL_PREFIX:PATH="${CMAKE_INSTALL_PREFIX}" \ -DCMAKE_BUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \ - -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \ - -DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \ - -DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}" \ -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES # @@ -80,6 +80,9 @@ CMAKE_INSTALL_PREFIX?= ${PREFIX} CMAKE_BUILD_TYPE?= Debug .else CMAKE_BUILD_TYPE?= Release +.endif + +.if defined(STRIP) && ${STRIP} != "" INSTALL_TARGET?= install/strip .endif |