forked from keystone-engine/keystone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make use of LLVM_LIBDIR_SUFFIX option, and rename 'fhs' to 'lib64'
- Loading branch information
Showing
4 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
#!/bin/sh -e | ||
|
||
# Build static library of Keystone Engine | ||
# syntax: make-lib.sh [debug] [macos-universal] [fhs] | ||
# syntax: make-lib.sh [debug] [macos-universal] [lib64] | ||
|
||
usage() | ||
{ | ||
echo "" | ||
echo "Syntax:\tmake-lib.sh [debug] [macos-universal] [fhs]\n" | ||
echo "\tdebug: build with debug info" | ||
echo "\tmacos-no-universal: do not build MacOS universal binaries" | ||
echo "\tfhs: install Linux x64 libraries in \$PREFIX/lib64" | ||
echo "Syntax: make-lib.sh [debug] [macos-universal] [lib64]" | ||
echo "" | ||
echo " debug: build with debug info" | ||
echo " macos-no-universal: do not build MacOS universal binaries" | ||
echo " lib64: install Linux x64 libraries in \$PREFIX/lib64" | ||
echo "" | ||
} | ||
|
||
source "$(dirname "$0")"/make-common.sh | ||
|
||
cmake -DLLVM_LIBDIR_SUFFIX="$LIB_SUFFIX" -DCMAKE_OSX_ARCHITECTURES="$ARCH" -DCMAKE_BUILD_TYPE=$BUILDTYPE -DBUILD_SHARED_LIBS=OFF -DLLVM_TARGETS_TO_BUILD="all" -G "Unix Makefiles" .. | ||
cmake -DLLVM_LIBDIR_SUFFIX="$LLVM_LIBDIR_SUFFIX" -DCMAKE_OSX_ARCHITECTURES="$ARCH" -DCMAKE_BUILD_TYPE=$BUILDTYPE -DBUILD_SHARED_LIBS=OFF -DLLVM_TARGETS_TO_BUILD="all" -G "Unix Makefiles" .. | ||
|
||
time make -j8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
#!/bin/sh -e | ||
|
||
# Build shared library of Keystone Engine | ||
# syntax: make-share.sh [debug] [macos-universal] [fhs] | ||
# syntax: make-share.sh [debug] [macos-universal] [lib64] | ||
|
||
usage() | ||
{ | ||
echo "" | ||
echo "Syntax:\tmake-share.sh [debug] [macos-universal] [fhs]\n" | ||
echo "\tdebug: build with debug info" | ||
echo "\tmacos-no-universal: do not build MacOS universal binaries" | ||
echo "\tfhs: install Linux x64 libraries in \$PREFIX/lib64 (Fedora/Redhat/Suse, etc)" | ||
echo "Syntax: make-share.sh [debug] [macos-universal] [lib64]" | ||
echo "" | ||
echo " debug: build with debug info" | ||
echo " macos-no-universal: do not build MacOS universal binaries" | ||
echo " lib64: install Linux x64 libraries in \$PREFIX/lib64 (Fedora/Redhat/Suse, etc)" | ||
echo "" | ||
} | ||
|
||
source "$(dirname "$0")"/make-common.sh | ||
|
||
cmake -DLLVM_LIBDIR_SUFFIX="$LIB_SUFFIX" -DCMAKE_OSX_ARCHITECTURES="$ARCH" -DCMAKE_BUILD_TYPE=$BUILDTYPE -DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="all" -G "Unix Makefiles" .. | ||
cmake -DLLVM_LIBDIR_SUFFIX="$LLVM_LIBDIR_SUFFIX" -DCMAKE_OSX_ARCHITECTURES="$ARCH" -DCMAKE_BUILD_TYPE=$BUILDTYPE -DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="all" -G "Unix Makefiles" .. | ||
|
||
time make -j8 |