Commit 5d8de932 authored by ¡Cinder! ㊝'s avatar ¡Cinder! ㊝ 💬
Browse files

Update darwin

parent 57896891
......@@ -63,8 +63,8 @@ Copyright (c) 2012, 2014, 2015, 2016 nghttp2 contributors</string>
</map>
<key>manifest</key>
<array>
<string>lib/debug/libnghttp2*.dylib</string>
<string>lib/release/libnghttp2*.dylib</string>
<string>lib/debug/libnghttp2*.a</string>
<string>lib/release/libnghttp2*.a</string>
</array>
<key>name</key>
<string>darwin</string>
......
......@@ -86,7 +86,7 @@ pushd "$top/nghttp2"
;;
darwin*)
opts="${TARGET_OPTS:--arch $AUTOBUILD_CONFIGURE_ARCH -gdwarf-2}"
opts="${TARGET_OPTS:--arch $AUTOBUILD_CONFIGURE_ARCH $LL_BUILD_RELEASE}"
mkdir -p "build"
pushd "build"
......@@ -95,34 +95,17 @@ pushd "$top/nghttp2"
-DCMAKE_INSTALL_PREFIX="$stage" \
-DCMAKE_OSX_SYSROOT="macosx10.14" \
-DCMAKE_OSX_DEPLOYMENT_TARGET="10.13" \
-DENABLE_STATIC_LIB=ON -DENABLE_SHARED_LIB=OFF \
-DENABLE_LIB_ONLY=ON
cmake --build . --config Debug
cmake --build . --config Release
mv lib/Debug/libnghttp2*.dylib "$stage/lib/debug/"
mv lib/Release/libnghttp2*.dylib "$stage/lib/release/"
mv lib/Debug/libnghttp2*.a "$stage/lib/debug/"
mv lib/Release/libnghttp2*.a "$stage/lib/release/"
cp -a lib/includes/nghttp2/nghttp2ver.h "$stage/include/nghttp2"
popd
rm -rf "build"
# SL-807: fix_dylib_id doesn't really handle symlinks, even though
# it's coded to try to do so. Chase the multiple levels of
# indirection to find the real dylib.
pushd "$stage/lib/debug"
dylib="libnghttp2.dylib"
while [ -L "$dylib" ]
do dylib="$(readlink "$dylib")"
done
fix_dylib_id "$dylib"
popd
pushd "$stage/lib/release"
dylib="libnghttp2.dylib"
while [ -L "$dylib" ]
do dylib="$(readlink "$dylib")"
done
fix_dylib_id "$dylib"
popd
;;
linux*)
......@@ -185,3 +168,4 @@ pushd "$top/nghttp2"
popd
cp "$NGHTTP2_VERSION_HEADER_DIR"/nghttp2.h "$stage/include/nghttp2/"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment