DragonFly users List (threaded) for 2008-05
DragonFly BSD
DragonFly users List (threaded) for 2008-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Linking with gcc runtime


From: "Thomas E. Spanjaard" <tgen@xxxxxxxxxxxx>
Date: Mon, 12 May 2008 10:14:46 +0000

Hasso Tepper wrote:
There are some software pieces out there which want to link with gcc runtime stuff (emacs and pcc are examples). But we have the interesting files in /usr/lib/gcc<version>/.

What I really don't want to do is to maintain patches which will break with every compiler upgrade:

#if defined(__GNUC__) && __GNUC__ == 3 && __GNUC_MINOR__ == 4
#define GCC_LIB -L/usr/lib/gcc34
...
#elif defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 1
#define GCC_LIB -L/usr/lib/gcc41
...

Anyone has good ideas how to do it in better way?

Introduce a varsym which uses CCVER (/usr/lib/gcc/ -> /usr/lib/$(CCVER))? -- Thomas E. Spanjaard tgen@netphreax.net tgen@deepbone.net

Attachment: signature.asc
Description: OpenPGP digital signature



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