[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA-dev: pcb and -rdynamic
DJ Delorie wrote:
>>Any suggestions on the right way to get the compiler specific flags
>>which are needed here?
>
>
> The obvious thing is to check for -x on the output file.
>
> The second choice is to bop the cc developers on their heads for not
> failing on unknown options, and for producing a file yet not making it
> executable, while still "succeeding".
>
it is a little goofy, but note that its not just that 'x' didn't get
turned on, we created a shared object, not an executible. Thats why I
sent the file(1) output. I wonder if there is a canned macro for this
or at least a semi-standard way of checking.
Of course gcc on linux has some similar issues ;)
mcmahill@offsides 4 % gcc -o foo foo.c -R/usr/X11R6/lib -L/usr/X11R6/lib
gcc: unrecognized option `-R/usr/X11R6/lib'
mcmahill@offsides 5 % echo $?
0
which is why -R is checked after several other possibilities...
-Dan
_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev