]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix spec building under clang
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 30 Dec 2015 02:28:10 +0000 (21:28 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 30 Dec 2015 02:28:10 +0000 (21:28 -0500)
redhat/freeradius.spec

index faa9e2a9d6ac0c20caed6658d79d110109fccbf2..57978d657b867a24dac4abe4a851d84167fbc281 100644 (file)
@@ -315,6 +315,11 @@ export CFLAGS="$RPM_OPT_FLAGS -fPIC"
 export CFLAGS="$RPM_OPT_FLAGS -fpic"
 %endif
 
+# Need to pass these explicitly for clang, else rpmbuilder bails when trying to extract debug info from
+# the libraries.  Guessing GCC does this by default.  Why use clang over gcc? The version of clang
+# which ships with RHEL 6 has basic C11 support, gcc doesn't.
+export LDFLAGS="-Wl,--build-id"
+
 %configure \
         --libdir=%{_libdir}/freeradius \
         --with-system-libtool \