Parcourir la source

V0.1.2
1、修改了zlib,cmake可以使用fPIC了

Apple il y a 7 mois
Parent
commit
dff198b2b3
3 fichiers modifiés avec 13 ajouts et 7 suppressions
  1. 4 4
      编译CURL.txt
  2. 4 0
      编译OpenSSL1.1.1.txt
  3. 5 3
      编译zlib.txt

+ 4 - 4
编译CURL.txt

@@ -19,10 +19,10 @@ cmake .. \
 #使用configure编译
 ../configure \
 --with-pic \
---prefix=/home/Apple/Design/Library/Standard_Library/Libraries/CURL \
-CC=/usr/bin/gcc-8 \
---with-openssl=/home/Apple/Design/Library/openssl \
---with-zlib=/home/Apple/Design/Library/ZIP/zlib/zlib
+--prefix=/home/Apple/Lib/SRC/CURL \
+CC=/usr/bin/gcc \
+--with-openssl=/home/Apple/Lib/SRC/openssl \
+--with-zlib=/home/Apple/Lib/SRC/zlib
 
 
 make

+ 4 - 0
编译OpenSSL1.1.1.txt

@@ -3,3 +3,7 @@ export CXX=/usr/bin/g++-8
 
 #指定zlib的位置,指定C 编译器
 ../config CC=/usr/bin/gcc-8 CXX=/usr/bin/g++-8 -fPIC --prefix=/home/Apple/Design/Library/openssl zlib -I/home/Apple/Design/Library/Standard_Library/Libraries/zlib/include -L//persistent/home/Apple/Design/Library/Standard_Library/Libraries/zlib/lib
+
+../config CC=/usr/bin/gcc CXX=/usr/bin/g++ -fPIC --prefix=/home/Apple/Lib/SRC/openssl zlib -I/home/Apple/Lib/SRC/zlib/include -L/home/Apple/Lib/SRC/zlib/lib
+
+

+ 5 - 3
编译zlib.txt

@@ -1,7 +1,9 @@
 cmake .. \
--DPOSITION_INDEPENDENT_CODE=True \
--DCMAKE_INSTALL_PREFIX=/home/Apple/Design/Library/ZIP/zlib \
--DBUILD_SHARED_LIBRARY=ON \
+-DCMAKE_POSITION_INDEPENDENT_CODE=True \
+-DCMAKE_INSTALL_PREFIX=/home/Apple/Lib/SRC/zlib 
+-DBUILD_SHARED_LIBRARY=ON
+
+
 -DCMAKE_C_COMPILER=/usr/bin/gcc-8 \
 -DCMAKE_CXX_COMPILER=/usr/bin/g++-8