bug-automake
[Top][All Lists]
Advanced

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

automake 1.11 parses if statement too late


From: Bernhard Rosenkraenzer
Subject: automake 1.11 parses if statement too late
Date: Fri, 07 Aug 2009 14:23:25 +0200
User-agent: BlankPage Webmail/0.3-beta

Hi,
this part of a Makefile.am causes errors with automake 1.11:

if IPHONE
# What ****ing ***** came up with the idea of a platform without shared
libraries???
lib_LIBRARIES = libtest.a
libtest_a_SOURCES = test.cpp
libtest_a_LDFLAGS = -lsomelib
else
lib_LTLIBRARIES = libtest.la
libtest_la_SOURCES = test.cpp
libtest_la_LDFLAGS = -lsomelib
endif

The errors are

Makefile.am: object `test.$(OBJEXT)' created both with libtool and without
Makefile.am:5: variable `libtest_a_LDFLAGS' is defined but no program or
Makefile.am:5: library has `libtest_a' as canonical name (possible typo)

Both of the errors should not occur, given the statements in "if ..." and
"else" are mutually exclusive and can't be run at the same time.




reply via email to

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