Skip to content

Commit

Permalink
swi-prolog: Adjusting the BUILD to fix lunar fix trying to fix its
Browse files Browse the repository at this point in the history
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.
22 changes: 22 additions & 0 deletions compilers/swi-prolog/BUILD
@@ -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

0 comments on commit af0bdb6

Please sign in to comment.