discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem to compile gnustep-base on android


From: Germán Arias
Subject: Re: Problem to compile gnustep-base on android
Date: Sat, 26 Sep 2015 16:37:06 -0600

El sáb, 26-09-2015 a las 09:59 +0100, David Chisnall escribió:
[...]
> Try adding -### to the end of the clang invocation and you will see how it is 
> invoking the linker.  It may be that it always adds -pie for the Android 
> target (which would be a clang bug when linking things that are not programs).
> 
> GNUstep is pretty unusual in using ld -r[1], so this is probably something 
> that’s not well tested.
> 
> David
> 
> [1] Which is not a bad thing - ld -r should be used in most places where ar 
> is used.
> 
> -- Sent from my PDP-11
> 

Here the output:

clang version 3.6 
Target: armv5te-none-linux-androideabi
Thread model: posix

"/home/german/Instalados/android-toolchains/my-android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld"
 "-pie" "-X" "--eh-frame-hdr" "-m" "armelf_linux_eabi" "-dynamic-linker" 
"/system/bin/linker" "-o" "./obj/subproject.o" 
"-L/home/german/Instalados/android-toolchains/my-android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.8"
 
"-L/home/german/Instalados/android-toolchains/my-android-toolchain/bin/../arm-linux-androideabi/lib"
 
"-L/home/german/Instalados/android-toolchains/my-android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/lib/../lib"
 
"-L/home/german/Instalados/android-toolchains/my-android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../sysroot/usr/lib/../lib"
 
"-L/home/german/Instalados/android-toolchains/my-android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/lib"
 
"-L/home/german/Instalados/android-toolchains/my-android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../sysroot/usr/lib"
 "-r" "obj/Additions.obj/GSTypeEncoding.c.o" 
"obj/Additions.obj/GSObjCRuntime.m.o" "obj/Additions.obj/GCObject.m.o" 
"obj/Additions.obj/GCArray.m.o" "obj/Additions.obj/GCDictionary.m.o" 
"obj/Additions.obj/GSLock.m.o" "obj/Additions.obj/GSMime.m.o" 
"obj/Additions.obj/GSXML.m.o" "obj/Additions.obj/GSFunctions.m.o" 
"obj/Additions.obj/GSInsensitiveDictionary.m.o" 
"obj/Additions.obj/NSArray+GNUstepBase.m.o" 
"obj/Additions.obj/NSAttributedString+GNUstepBase.m.o" 
"obj/Additions.obj/NSBundle+GNUstepBase.m.o" 
"obj/Additions.obj/NSCalendarDate+GNUstepBase.m.o" 
"obj/Additions.obj/NSData+GNUstepBase.m.o" 
"obj/Additions.obj/NSDebug+GNUstepBase.m.o" 
"obj/Additions.obj/NSError+GNUstepBase.m.o" 
"obj/Additions.obj/NSHashTable+GNUstepBase.m.o" 
"obj/Additions.obj/NSFileHandle+GNUstepBase.m.o" 
"obj/Additions.obj/NSLock+GNUstepBase.m.o" 
"obj/Additions.obj/NSMutableString+GNUstepBase.m.o" 
"obj/Additions.obj/NSNumber+GNUstepBase.m.o" 
"obj/Additions.obj/NSObject+GNUstepBase.m.o" 
"obj/Additions.obj/NSPropertyList+GNUstepBase.m.o" 
"obj/Additions.obj/NSProcessInfo+GNUstepBase.m.o" 
"obj/Additions.obj/NSStream+GNUstepBase.m.o" 
"obj/Additions.obj/NSString+GNUstepBase.m.o" 
"obj/Additions.obj/NSTask+GNUstepBase.m.o" 
"obj/Additions.obj/NSThread+GNUstepBase.m.o" 
"obj/Additions.obj/NSURL+GNUstepBase.m.o" "obj/Additions.obj/Unicode.m.o"

What is the difference between -r and -pie?
Will this works if -r option is removed?

Germán





reply via email to

[Prev in Thread] Current Thread [Next in Thread]