Pārlūkot izejas kodu

allow OpenSSL to be build with PIC. Contributed by Robin Breathe.

Ralf S. Engelschall 21 gadi atpakaļ
vecāks
revīzija
38d9c0599f
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5 1
      openssl/openssl.spec

+ 5 - 1
openssl/openssl.spec

@@ -34,12 +34,13 @@ Class:        CORE
 Group:        Cryptography
 License:      BSD-style
 Version:      0.9.7e
-Release:      20041115
+Release:      20050209
 
 #   package options
 %option       with_zlib     no
 %option       with_idea     no
 %option       with_threads  no
+%option       with_pic      no
 
 #   list of sources
 Source0:      ftp://ftp.openssl.org/source/openssl-%{version}.tar.gz
@@ -90,6 +91,9 @@ AutoReqProv:  no
     ./config \
         --prefix=%{l_prefix} \
         --openssldir=%{l_prefix}/etc/openssl \
+%if "%{with_pic}" == "yes"
+        -fPIC \
+%endif
 %if "%{with_zlib}" == "yes"
         zlib \
 %else