]> sigrok.org Git - libsigrok.git/commitdiff
Makefile.am: Use $(CXXCOMPILE) to compile C++ code
authorMarcus Comstedt <redacted>
Sun, 31 Aug 2014 08:49:02 +0000 (10:49 +0200)
committerBert Vermeulen <redacted>
Sun, 31 Aug 2014 11:26:47 +0000 (13:26 +0200)
When compiling the SWIG wrappers for the Java bindings, use the correct
automake macro so that all compiler flags are honoured.

Makefile.am

index 3087649cdb93bb5e3fe3dfd12572481543d1418d..e5495755a96da912ec5b8aaed2f33f00eeb76f76 100644 (file)
@@ -523,7 +523,7 @@ $(JJAR): $(JCXX)
        $(AM_V_at)jar cf $(JJAR) -C $(JDIR) $(JPKG)
 
 $(JLIB): $(JCXX) bindings/cxx/libsigrokxx.la $(library_include_HEADERS)
-       $(AM_V_GEN)$(CXX) $(CXXFLAGS) -L.libs -Lbindings/cxx/.libs \
+       $(AM_V_GEN)$(CXXCOMPILE) -L.libs -Lbindings/cxx/.libs \
                -fno-strict-aliasing -fPIC -shared $(JCLS)/classes_wrap.cxx \
                -lsigrokxx -o $(JLIB)