Prechádzať zdrojové kódy

make utils link statically against libsasl2

Michael van Elst 23 rokov pred
rodič
commit
fd916d8837
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      sasl/sasl.spec

+ 5 - 1
sasl/sasl.spec

@@ -157,12 +157,16 @@ AutoReqProv:  no
         libtool
     #   do not reference static plugins
     %{l_shtool} subst \
-        -e 's;^\(#ifndef PIC\);#define PIC\n\1;' \
+        -e '58s;.*;#define PIC;' \
         lib/dlopen.c
     #   do not pull static plugins into static library
     %{l_shtool} subst \
         -e '/^SASL_STATIC_OBJS/s;\.\./plugins/[^ ]* *;;g' \
         lib/Makefile
+    #   build utils against static library
+    %{l_shtool} subst \
+        -e 's;\(\$(CCLD)\);\1 -static;' \
+        utils/Makefile
 
     %{l_make} %{l_mflags}
     cd saslauthd