commit fde8f52a441d699cad3e9f8570532c79aa4bc719
Author: Artur Frysiak <[email protected]>
Date:   Tue Apr 17 13:54:56 2001 +0000

    use %%rpmldflags and %%rpmcflags
    
    Changed files:
        adapter.awk -> 1.91

 adapter.awk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 1900121..2d6ee6c 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -167,7 +167,7 @@ comment_block == 1 {
                        split($0, tmp, "LDFLAGS=")
                        count = split(tmp[2], flags, "\"")
                        if (flags[1] != "" && flags[1] !~ "!?debug") {
-                               sub(/-s[" ]?/, "%{!?debug:-s} ", flags[1])
+                               sub(/-s[" ]?/, "%{rpmldflags} ", flags[1])
                                $0 = tmp[1] line[1] "LDFLAGS=" flags[1] "\""
                                for (i = 2; i < count; i++)
                                        $0 = $0 flags[i] "\""
@@ -661,7 +661,7 @@ function cflags(var)
        }
                
        if (!/!\?debug/)
-               sub("\$RPM_OPT_FLAGS", "%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 
-g}")
+               sub("\$RPM_OPT_FLAGS", "%{rpmcflags}")
        return 1
 }
 
================================================================

---- gitweb:

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to