Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swi-prolog: Adjusting the BUILD to fix lunar fix trying to fix its
inability to find libjava.so, libjsig.so and libverify.so.
- Loading branch information
stumbles
committed
Jun 10, 2013
1 parent
5ca266f
commit af0bdb6
Showing
1 changed file
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
if [[ `arch` == "x86_64" ]] ; then | ||
JAVA_ARCH=amd64 | ||
else | ||
JAVA_ARCH=i586 | ||
fi && | ||
|
||
export LD_LIBRARY_PATH="/usr/lib/swipl-`lvu version swi-prolog`" && | ||
LDFLAGS+=" -Wl,-rpath,$JAVA_HOME/jre/lib/$JAVA_ARCH,-rpath,$JAVA_HOME/jre/lib/$JAVA_ARCH/server" && | ||
|
||
# looks like they use a different uudecode... don't use ours | ||
sedit "s:^if uudecode.*$:if false; then:" packages/jpl/configure && | ||
|
||
OPTS+=" --with-world --enable-shared" && | ||
|
||
# no idea why they catch those flags here - this breaks | ||
# a lot.. let's just remove the catch statement | ||
sedit "/--without-/ { N;N;N;N;d }" configure && | ||
|
||
message "${MESSAGE_COLOR}The following 'unrecognized...' warning is alright${DEFAULT_COLOR}" | ||
# The configure in src/ doesn't know any --without-XYZ flags, | ||
# but we need to pass them on to packages/configure | ||
default_build |