[Top][All Lists]

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

Re: Multilib sources and variables

From: Ralf Wildenhues
Subject: Re: Multilib sources and variables
Date: Sun, 30 Nov 2008 08:32:06 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

* 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.

> 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.


reply via email to

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