Skip to content
Browse files

use proper compilation flags for linux

  • Loading branch information...
1 parent 46388a8 commit e5fdd1bc37901bd407cc196764dfeae3493997d1 @mpapis mpapis committed May 3, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 shell/functions
View
5 shell/functions
@@ -5,7 +5,7 @@ tokaido_install_package()
includes $1
package is installed $1 &&
log step "$1 already installed" true ||
- LDFLAGS="-fPIC" package install name $@ static
+ CFLAGS="-fPIC" LDFLAGS="-fPIC" package install name $@ static
package reset
}
@@ -46,7 +46,8 @@ tokaidoapp_preconfigure()
then
LDFLAGS="-Bstatic $LDFLAGS"
else
- LDFLAGS="-static-libgcc -static-libstdc++ $LDFLAGS"
+ CFLAGS="-fPIC $CFLAGS"
+ LDFLAGS="-fPIC -static-libgcc -static-libstdc++ $LDFLAGS"
fi
}

0 comments on commit e5fdd1b

Please sign in to comment.
Something went wrong with that request. Please try again.