From: shadzik Date: Tue, 4 Jan 2011 13:10:06 +0000 (+0000) Subject: - dunno if that stuff glen commited works properly, but this is the way you wanna... X-Git-Tag: auto/ti/rpm-build-macros-1_600-1~4 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=fb3a36122884e5cbe872c3b2bf7c69b4d224c115;hp=1e00c0311e98e44a4a75b89146e3a6f7bcbad7c6;p=packages%2Frpm-pld-macros.git - dunno if that stuff glen commited works properly, but this is the way you wanna set CFLAGS and stuff in cmake Changed files: rpm.macros -> 1.598 --- diff --git a/rpm.macros b/rpm.macros index 2543d4e..fc29208 100644 --- a/rpm.macros +++ b/rpm.macros @@ -259,6 +259,9 @@ LDFLAGS="${LDFLAGS:-%{rpmldflags}}" \\\ -DLIB_INSTALL_DIR:PATH=%{_libdir} \\\ -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\ -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\ + -DCMAKE_CXX_FLAGS=%{rpmcxxflags} \\\ + -DCMAKE_CPP_FLAGS=%{rpmcppflags} \\\ + -DCMAKE_C_FLAGS=%{rpmcflags} \\\ %if "%{_lib}" == "lib64" \ -DLIB_SUFFIX=64 \\\ %endif \