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.