From c3885255035cf3da1f53feefd3fde2e72468b231 Mon Sep 17 00:00:00 2001 From: stevenj Date: Thu, 9 Jun 2011 13:26:14 -0400 Subject: [PATCH] --with-cxx should not use -no-undefined, since it deppends on the C++ std libs (which prevents us from building --with-cxx libs for Windows); thanks to Volker Lorrmann for the bug report darcs-hash:20110609172614-c8de0-c4ece0c600b6cbe6155387daa7b92e4466bfbabc.gz --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.am b/Makefile.am index 6a03932..3b22293 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,7 +23,11 @@ cobyla/libcobyla.la newuoa/libnewuoa.la neldermead/libneldermead.la \ auglag/libauglag.la bobyqa/libbobyqa.la isres/libisres.la \ slsqp/libslsqp.la api/libapi.la util/libutil.la +if WITH_CXX +libnlopt@NLOPT_SUFFIX@_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@ +else libnlopt@NLOPT_SUFFIX@_la_LDFLAGS = -no-undefined -version-info @SHARED_VERSION_INFO@ +endif pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = nlopt.pc -- GitLab