automake
[Top][All Lists]
Advanced

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

Re: Multilib sources and variables


From: NightStrike
Subject: Re: Multilib sources and variables
Date: Sun, 30 Nov 2008 12:08:39 -0500

On Sun, Nov 30, 2008 at 2:32 AM, Ralf Wildenhues wrote:
> * NightStrike wrote on Sun, Nov 30, 2008 at 01:52:23AM CET:
>> Is the following kosher?
>
> Yes, except that you need to use $(shell32src) instead of $shell32src in
> both places.

Noted, thanks!

>> shell32src=libsrc/shell32.c
>>
>> lib32_LIBRARIES += lib32/libshell32.a
>> lib32_libshell32_a_SOURCES = $shell32src
>> lib32_libshell32_a_CPPFLAGS = -m32
>>
>> lib64_LIBRARIES += lib64/libshell32.a
>> lib64_libshell32_a_SOURCES = $shell32src
>
>> Basically, all the sources are the same, so I don't want to list them
>> twice (and subsequently maintain two lists and forget to keep updating
>> the two lists.)  The only difference is adding the -m32 flag (which
>> I'm hoping is correctly placed in CPPFLAGS, and not CFLAGS... I never
>> remember which flags go where).
>
> Typically, -m32 either goes right on to the compiler, or it goes in both
> CPPFLAGS and LDFLAGS.  Since you don't link here, that looks ok.

So if I put something in CPPFLAGS, gcc won't pass that on to the
linker for LDFLAGS?




reply via email to

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