diff --git a/ports/gonk/.cargo/config b/ports/gonk/.cargo/config index a4d8b3b6fdb..417f118e43b 100644 --- a/ports/gonk/.cargo/config +++ b/ports/gonk/.cargo/config @@ -1,6 +1,6 @@ [target.arm-linux-androideabi] ar = "arm-linux-androideabi-ar" -linker = "arm-linux-androideabi-g++" +linker = "./fake-ld.sh" [target.arm-linux-androideabi.openssl] -rustc-flags = "-l crypto -l ssl" \ No newline at end of file +rustc-flags = "-l crypto -l ssl" diff --git a/ports/gonk/fake-ld.sh b/ports/gonk/fake-ld.sh new file mode 100755 index 00000000000..11f893d7263 --- /dev/null +++ b/ports/gonk/fake-ld.sh @@ -0,0 +1,2 @@ +#!/bin/bash +arm-linux-androideabi-g++ $@ $LDFLAGS -lGLESv2 -lsupc++ -L $GONKDIR/backup-flame/system/lib/ -L$GONKDIR/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/