[vlc-commits] [Git][videolan/libvlcpp][master] Makefile.am: Properly link examples with libvlc

Hugo Beauzée-Luyssen gitlab at videolan.org
Fri Nov 6 15:21:37 CET 2020



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / libvlcpp


Commits:
6d7297fc by Hugo Beauzée-Luyssen at 2020-11-06T15:20:32+01:00
Makefile.am: Properly link examples with libvlc

This fixes the build with gcc 10

- - - - -


1 changed file:

- Makefile.am


Changes:

=====================================
Makefile.am
=====================================
@@ -30,7 +30,6 @@ if HAVE_EXAMPLES
 noinst_PROGRAMS = helloworld tests imem discovery
 
 AM_CPPFLAGS = $(vlc_CFLAGS) -Wextra -Wall
-AM_LDFLAGS = $(vlc_LIBS)
 
 if HAVE_WERROR
 # This is meant to make our builds fail if a deprecated method is present
@@ -38,8 +37,12 @@ AM_CPPFLAGS += -Werror
 endif
 
 helloworld_SOURCES = examples/helloworld/main.cpp
+helloworld_LDADD = $(vlc_LIBS)
 imem_SOURCES = examples/imem/imem.cpp
+imem_LDADD = $(vlc_LIBS)
 tests_SOURCES = test/main.cpp
+tests_LDADD = $(vlc_LIBS)
 discovery_SOURCES = examples/renderers/discovery.cpp
+discovery_LDADD = $(vlc_LIBS)
 
 endif



View it on GitLab: https://code.videolan.org/videolan/libvlcpp/-/commit/6d7297fc887243d7f2dfbb4196fe02ecc68b58d3

-- 
View it on GitLab: https://code.videolan.org/videolan/libvlcpp/-/commit/6d7297fc887243d7f2dfbb4196fe02ecc68b58d3
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list