discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Compiler options order sensitive to placement of fobjc-arc


From: Patryk Laurent
Subject: Re: Compiler options order sensitive to placement of fobjc-arc
Date: Fri, 27 Dec 2013 19:49:06 +0000 (GMT)

David,

Odd indeed, especially since the first ordering worked previously. Here is the output of gnustep-config:

patryk@paklbox:~$ gnustep-config --objc-flags
-MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -pthread -fPIC -DDEBUG -fno-omit-frame-pointer -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -g -fgnu-runtime -fconstant-string-class=NSConstantString -I. -I/home/patryk/GNUstep/Library/Headers -I/usr/GNUstep/Local/Library/Headers -I/usr/GNUstep/System/Library/Headers -I/usr/GNUstep/Local/Library/Headers -I/usr/GNUstep/Local/Library/Headers -I/usr/GNUstep/System/Library/Headers -I/usr/include/libxml2 -I/usr/include/p11-kit-1
I will make a note to specify the GNUStep version.

Thank you,
Patryk



On Dec 27, 2013, at 11:42 AM, David Chisnall <David.Chisnall@cl.cam.ac.uk> wrote:

That is indeed odd, and not something that I've seen. It would help to know the output from gnustep-config in your setup.

It's also better to specify the runtime version, as well as the family (-fobjc-runtime=gnustep-1.7).

David

On 27 Dec 2013, at 19:34, Patryk Laurent <plaurent@me.com> wrote:

Interestingly, the -fobjc-arc option is not recognized if it appears too early:
patryk@paklbox:~$ clang `gnustep-config --objc-flags` `gnustep-config --objc-libs` -fobj-arc -fobjc-runtime=gnustep -fblocks -lobjc blocktest.m
clang-3.5: error: unknown argument: '-fobj-arc'
patryk@paklbox:~$
If I place it later, it's fine.
patryk@paklbox:~$ clang `gnustep-config --objc-flags` `gnustep-config --objc-libs` -fobjc-runtime=gnustep -fblocks -fobjc-arc -lobjc blocktest.m
patryk@paklbox:~$
Is this expected and/or understood by someone? :)
Thanks,
Patryk
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
 
https://lists.gnu.org/mailman/listinfo/discuss-gnustep
 


reply via email to

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