Fix so only explicitly specified symbols are exported (patch fix-exported-symbols.patch)

This commit is contained in:
Stefan Persson 2011-03-18 14:50:04 +00:00
parent c412c59490
commit 541e8e0ba4
2 changed files with 5 additions and 1 deletions

View file

@ -137,6 +137,10 @@ ADD_LIBRARY(${telldus-gui_TARGET} SHARED
${telldus-gui_QM}
)
IF (UNIX)
SET_TARGET_PROPERTIES( ${telldus-gui_TARGET} PROPERTIES COMPILE_FLAGS "-fPIC -fvisibility=hidden")
ENDIF (UNIX)
TARGET_LINK_LIBRARIES( ${telldus-gui_TARGET} ${telldus-gui_LIBRARIES} )
SET_PROPERTY(TARGET ${telldus-gui_TARGET}

View file

@ -18,7 +18,7 @@
#define WINAPI __stdcall
#else
#define WINAPI
#define TELLDUSGUI_API
#define TELLDUSGUI_API __attribute__ ((visibility("default")))
#endif
class QWidget;