소스 검색

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

Ralf S. Engelschall 21 년 전
부모
커밋
38d9c0599f
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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