Permalink
Browse files

ldflags

  • Loading branch information...
1 parent b1a5568 commit bb23f40e1d5bf36ae6667948c200f1b29729a0b0 @aaronbatalion committed Oct 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 bin/compile
View
@@ -81,11 +81,13 @@ cp -R $build/* $p
LIBGD_PACKAGE="http://cloud.github.com/downloads/aaronbatalion/heroku-buildpack-go/10719d09-6faf-45d7-9e35-69badb8b1099.gz"
VENDORED_LIBGD="$(mktmpdir libgd)"
+echo -n " Installing LibGD..."
mkdir -p $VENDORED_LIBGD && curl $LIBGD_PACKAGE -s -o - | tar xzf - -C $VENDORED_LIBGD
# setting up paths for building
PATH="$VENDORED_LIBGD:$PATH"
INCLUDE_PATH="$VENDORED_LIBGD/include"
export LD_PRELOAD="$VENDORED_LIBGD/lib/libgd.so"
+export LDFLAGS="-lgd"
export LD_LIBRARY_PATH="$VENDORED_LIBGD/lib"
export LIBPATH="$VENDORED_LIBGD/lib"
export CPATH="$INCLUDE_PATH"

0 comments on commit bb23f40

Please sign in to comment.