Don't pass -pie when linking a dylib on gonk

This commit is contained in:
Matt Brubeck 2015-10-08 20:45:23 -07:00
parent e2e142aae8
commit a15acef4c8

View file

@ -1,2 +1,9 @@
#!/bin/bash
arm-linux-androideabi-g++ $@ $LDFLAGS -pie -lGLESv2 -L$GONKDIR/backup-flame/system/lib/
# Add the position-independent executable flag if not building a shared lib.
if echo $@ | grep -qv " -shared"
then
PIE_FLAG="-pie"
fi
$PIE_FLAG
arm-linux-androideabi-g++ $@ $LDFLAGS $PIE_FLAG -lGLESv2 -L$GONKDIR/backup-flame/system/lib/