Skip to content

Commit

Permalink
specfile: use %optflags for CFLAGS and CXXFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Mar 20, 2018
1 parent 1ffe4cd commit ec91505
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platforms/packaging/bareos.spec
Expand Up @@ -712,6 +712,9 @@ pushd %{CMAKE_BUILDDIR}
export PATH=/opt/rh/devtoolset-7/root/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
%endif

CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;

# use our own cmake call instead of cmake macro as it is different on different platforms/versions
cmake .. \
-DCMAKE_VERBOSE_MAKEFILE=ON \
Expand Down

0 comments on commit ec91505

Please sign in to comment.