]> git.pld-linux.org Git - packages/rpm-build-macros.git/blobdiff - rpm.macros
- change in %%configure - don't add -s to LDFLAGS if LDFLAGS!=""
[packages/rpm-build-macros.git] / rpm.macros
index 949b26425aa67fdc7c8a5ec870eeecc00036b379..1d335229790dcb4c5a1c7246ab2b39ac7edc405e 100644 (file)
@@ -1,7 +1,7 @@
 #-----------------------------------------------------------------
 %configure { \
  if [ -n "$LINGUAS" ]; then unset LINGUAS; fi; \
- LDFLAGS="${LDFLAGS}%{!?debug: -s}" ; export LDFLAGS ; \
+ LDFLAGS="${LDFLAGS:-%{!?debug: -s}}" ; export LDFLAGS ; \
  CFLAGS="${CFLAGS:-%optflags}%{?debug: -g -O}" ; export CFLAGS ; \
  CXXFLAGS="${CXXFLAGS:-%optflags}%{?debug: -g -O}" ; export CXXFLAGS ; \
  FFLAGS="${FFLAGS:-%optflags}%{?debug: -g -O}" ; export FFLAGS ; \
@@ -133,7 +133,7 @@ echo "Compress man and info pages."; \
 %{!?no_install_post_strip: \
        %{?verbose:set -x;} \
        echo "Strip executable binaries and shared object files."; \
-       filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so$"`; \
+       filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*"`; \
        elfexelist=`echo $filelist | xargs -r file | \
                awk '/ELF.*executable/ {print $1}' | cut -d: -f1`; \
        elfsharedlist=`echo $filelist | xargs -r file | \
This page took 0.058785 seconds and 4 git commands to generate.