bug? (tar.gz distribution loses compiler options?)

Ralf Nolden nolden at kde.org
Sat Jul 14 07:08:34 BST 2001


Pic wrote:
> 
> Hi,
> 
> I have a project with extra compiler options (-DLINUX).
> I create a tar.gz distribution, unpack to another directory, run
> ./configure, and make.
> The -DLINUX is not passed to gcc, resulting in the build failing.

Hi Ben,

hmm...this is somewhat the same old story with the CXXFLAGS that is
used. you should set these at the target platform before running
configure (export CXXFLAGS=-DLINUX). A much better way is to use the Qt
defines for Linux to distinguish which OS you're on (as long as it's a
Qt project), otherwise you need to add the define to where your
configure check has the OS check and output it to config.h and include
that to your files.

Hope this helps,

Ralf
--
We're not a company, we just produce better code at less costs.
--------------------------------------------------------------------
Ralf Nolden
nolden at kde.org

The K Desktop Environment	The KDevelop Project
http://www.kde.org		http://www.kdevelop.org

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list