From: Arran Cudbard-Bell Date: Wed, 30 Dec 2015 02:28:10 +0000 (-0500) Subject: Fix spec building under clang X-Git-Tag: release_3_0_11~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdc20fe9b0d801e5e9b3fdf0a51e1d4c0845e7c7;p=thirdparty%2Ffreeradius-server.git Fix spec building under clang --- diff --git a/redhat/freeradius.spec b/redhat/freeradius.spec index faa9e2a9d6a..57978d657b8 100644 --- a/redhat/freeradius.spec +++ b/redhat/freeradius.spec @@ -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 \