Skip to content

Commit

Permalink
Merge pull request #8 from simonbyrne/patch-1
Browse files Browse the repository at this point in the history
Fix library paths
  • Loading branch information
quinnj authored Mar 6, 2019
2 parents e10cf13 + ab0097e commit 51f13d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ version = v"2.2.0" # 2.0 Update 2
sources = [
"https://www.netlib.org/misc/intel/IntelRDFPMathLib20U2.tar.gz" =>
"93c0c78e0989df88f8540bf38d6743734804cef1e40706fd8fe5c6a03f79e173",

]

# Bash recipe for building across all platforms
Expand All @@ -25,6 +24,8 @@ fi
if [[ $target == *"-w64-"* ]]; then
make CC_NAME=cc _HOST_OS=Windows_NT AR_CMD="ar rv" _HOST_ARCH=$_HOST_ARCH CALL_BY_REF=0 GLOBAL_RND=1 GLOBAL_FLAGS=1 UNCHANGED_BINARY_FLAGS=1
$CC $LDFLAGS -shared -o libbid.$dlext *.obj
mkdir -p $prefix/bin
cp libbid.$dlext $prefix/bin/
else
if [[ $target == *"-musl"* ]]; then
CFLAGS_OPT="-fPIC -D__QNX__"
Expand All @@ -35,10 +36,10 @@ else
fi
make CC_NAME=cc CFLAGS_OPT="$CFLAGS_OPT" CFLAGS="$CFLAGS_OPT" _HOST_ARCH=$_HOST_ARCH CALL_BY_REF=0 GLOBAL_RND=1 GLOBAL_FLAGS=1 UNCHANGED_BINARY_FLAGS=1
$CC $LDFLAGS -shared -o libbid.$dlext *.o
mkdir -p $prefix/lib
cp libbid.$dlext $prefix/lib/
fi
mkdir -p $prefix/bin
cp libbid.$dlext $prefix/bin/
"""

# These are the platforms we will build for by default, unless further
Expand Down

0 comments on commit 51f13d1

Please sign in to comment.