Commits

Andreas Tscharner committed 092ac0a

Build: Use -export-dynamic for executable programs

Comments (0)

Files changed (2)

src/compiler/Makefile.am

 #
 # Library flags for main program
 lrc_LDADD = $(TINYXML_LIBADD) $(CRYPTOPP_LIBADD) -lz -lbz2
-lrc_LDFLAGS = $(TINYXML_LIBFLAGS) $(CRYPTOPP_LIBFLAGS)
+lrc_LDFLAGS = $(TINYXML_LIBFLAGS) $(CRYPTOPP_LIBFLAGS) -export-dynamic

src/example/Makefile.am

 #
 # Library flags
 ListResources_LDADD = -llrc
-ListResources_LDFLAGS = -L../lib/.libs
+ListResources_LDFLAGS = -L../lib/.libs -export-dynamic
 if HAVE_ALL_SDL
 ShowImage_LDADD = -llrc -lSDL -lSDL_image
-ShowImage_LDFLAGS = -L../lib/.libs
+ShowImage_LDFLAGS = -L../lib/.libs -export-dynamic
 endif
 ExtractText_LDADD = -llrc
-ExtractText_LDFLAGS = -L../lib/.libs
+ExtractText_LDFLAGS = -L../lib/.libs -export-dynamic
 
 #
 # Define data for programs