[packages/adapter: 76/631] - added removal of "LDFLAGS=-s" and "export ... LDFLAGS .."

glen glen at pld-linux.org
Mon Sep 12 19:40:50 CEST 2016


commit 9e4fc151097cd79f0cdcbc72f32c2d2426418337
Author: Sebastian Zagrodzki <sebek at zagrodzki.net>
Date:   Tue Sep 12 21:48:26 2000 +0000

    - added removal of "LDFLAGS=-s" and "export ... LDFLAGS .."
    
    Changed files:
        adapter.awk -> 1.76

 adapter.awk | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 7b71164..93b47c3 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -181,6 +181,16 @@ defattr == 1 {
 
 # Scripts
 {
+	if (/LDFLAGS/) {
+		gsub(/LDFLAGS="?.*?"?[ \t]*;?/,"");
+		if (/export/) {
+			gsub(/LDFLAGS(="?.*?"?)?[ \t]*/,"");
+			gsub("export[ \t]*(;|$)","");
+		}
+		if (/^[ \t]*$/)
+			next
+	}
+
 	if ($1 ~ /^mv$/) {
 		if ($2 ~ /^-/)
 			sub(/-[A-Za-z0-9]+ /, "", $0)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list