]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- new macro: %ld_rpmldflags - rpmldflags for 'ld' used as linker auto/ac/rpm-build-macros-1_333-1 auto/th/rpm-build-macros-1_333-1
authorsparky <sparky@pld-linux.org>
Fri, 24 Nov 2006 01:16:36 +0000 (01:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.333

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.178012 seconds and 4 git commands to generate.