Skip to content
Snippets Groups Projects
Commit 2e9acc00 authored by Dave Huseby's avatar Dave Huseby
Browse files

adding debug build to linux

parent 6f36bb37
No related branches found
No related tags found
No related merge requests found
syntax: glob syntax: glob
stage/ stage/
autobuild-parabuild-bootstrap/ autobuild-parabuild-bootstrap/
zlib-1.2.5/*.lo
zlib-1.2.5/*.o
zlib-1.2.5/*.so*
zlib-1.2.5/*.a
zlib-1.2.5/*.pc
zlib-1.2.5/example*
zlib-1.2.5/minigzip*
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<string>stage</string> <string>stage</string>
<key>configurations</key> <key>configurations</key>
<map> <map>
<key>Release</key> <key>default</key>
<map> <map>
<key>build</key> <key>build</key>
<map> <map>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<string>bash</string> <string>bash</string>
</map> </map>
<key>name</key> <key>name</key>
<string>Release</string> <string>default</string>
</map> </map>
</map> </map>
<key>manifest</key> <key>manifest</key>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<map> <map>
<key>configurations</key> <key>configurations</key>
<map> <map>
<key>Release</key> <key>default</key>
<map> <map>
<key>build</key> <key>build</key>
<map> <map>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<key>default</key> <key>default</key>
<boolean>true</boolean> <boolean>true</boolean>
<key>name</key> <key>name</key>
<string>Release</string> <string>default</string>
</map> </map>
</map> </map>
<key>manifest</key> <key>manifest</key>
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<map> <map>
<key>configurations</key> <key>configurations</key>
<map> <map>
<key>Release</key> <key>default</key>
<map> <map>
<key>build</key> <key>build</key>
<map> <map>
...@@ -75,12 +75,13 @@ ...@@ -75,12 +75,13 @@
<key>default</key> <key>default</key>
<boolean>true</boolean> <boolean>true</boolean>
<key>name</key> <key>name</key>
<string>Release</string> <string>default</string>
</map> </map>
</map> </map>
<key>manifest</key> <key>manifest</key>
<array> <array>
<string>lib/release/libz.a</string> <string>lib/release/libz.a</string>
<string>lib/debug/libz_debug.a</string>
</array> </array>
<key>name</key> <key>name</key>
<string>linux</string> <string>linux</string>
...@@ -89,7 +90,7 @@ ...@@ -89,7 +90,7 @@
<map> <map>
<key>configurations</key> <key>configurations</key>
<map> <map>
<key>Release</key> <key>default</key>
<map> <map>
<key>build</key> <key>build</key>
<map> <map>
...@@ -97,7 +98,7 @@ ...@@ -97,7 +98,7 @@
<key>default</key> <key>default</key>
<boolean>true</boolean> <boolean>true</boolean>
<key>name</key> <key>name</key>
<string>Release</string> <string>default</string>
</map> </map>
</map> </map>
<key>manifest</key> <key>manifest</key>
......
...@@ -56,15 +56,24 @@ pushd "$ZLIB_SOURCE_DIR" ...@@ -56,15 +56,24 @@ pushd "$ZLIB_SOURCE_DIR"
mv "$stage/include/"*.h "$stage/include/zlib/" mv "$stage/include/"*.h "$stage/include/zlib/"
;; ;;
"linux") "linux")
CFLAGS="-m32" CXXFLAGS="-m32" ./configure --prefix="$stage" # do release build
CFLAGS="-m32 -O2" CXXFLAGS="-m32 -O2" ./configure --prefix="$stage" --includedir="$stage/include/zlib" --libdir="$stage/lib/release"
make
make install
# clean the build artifacts
make distclean
# do debug build
CFLAGS="-m32 -O0 -gstabs+" CXXFLAGS="-m32 -O0 -gstabs+" ./configure --prefix="$stage" --includedir="$stage/include/zlib" --libdir="$stage/lib/debug"
make make
make install make install
mkdir -p "$stage/include/zlib"
mv "$stage/include/"*.h "$stage/include/zlib/"
mv "$stage/lib" "$stage/release" # fix the names of the debug library files
mkdir -p "$stage/lib" for f in `ls $stage/lib/debug/libz*`
mv "$stage/release" "$stage/lib" do
mv ${f} ${f/libz/libz_debug}
done
;; ;;
esac esac
mkdir -p "$stage/LICENSES" mkdir -p "$stage/LICENSES"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment