]> git.pld-linux.org Git - packages/rpm-build-macros.git/blobdiff - rpm.macros
- new macro: %ld_rpmldflags - rpmldflags for 'ld' used as linker
[packages/rpm-build-macros.git] / rpm.macros
index d1396d065f2788b621f0309943e85b51f9fa1e3c..6a24b416db6102291b8a6d86013fcb898d5b3e50 100644 (file)
@@ -91,6 +91,20 @@ fi; \
        %{filter_out}
 }')
 
+# rpmldflags with stripped -Wl, -- in the form flags have to be passed to 'ld'
+# but, don't use it, better use gcc as linker
+%ld_rpmldflags %(awk 'BEGIN {
+        split("%{rpmldflags}",F);
+        for (f in F) {
+                s = F[f];
+                if (s ~ /^-Wl,/) {
+                        s = substr(s,5);
+                        gsub(/,/," ",s);
+                };
+                printf(s FS);
+        };
+}')
+
 #-----------------------------------------------------------------
 %configure2_13 { \
  if [ -n "$LINGUAS" ]; then unset LINGUAS; fi; \
This page took 0.028743 seconds and 4 git commands to generate.