[vlc-commits] keystore: makefile: link cocoa only on OSX
Alexandre Janniaux
git at videolan.org
Tue May 19 16:20:55 CEST 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Mon May 4 10:34:25 2020 +0200| [3b9702ede69993d61f9581a8146bf61043fc2b7c] | committer: Alexandre Janniaux
keystore: makefile: link cocoa only on OSX
Cocoa doesn't exist on iOS and tvOS.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3b9702ede69993d61f9581a8146bf61043fc2b7c
---
modules/keystore/Makefile.am | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/keystore/Makefile.am b/modules/keystore/Makefile.am
index 9d5e5bcc78..57ae2273f6 100644
--- a/modules/keystore/Makefile.am
+++ b/modules/keystore/Makefile.am
@@ -28,7 +28,11 @@ libkwallet_plugin_la_LIBADD = $(DBUS_LIBS) $(LIBM)
libkeychain_plugin_la_SOURCES = keystore/keychain.m keystore/list_util.c keystore/list_util.h
libkeychain_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS) -fobjc-arc
-libkeychain_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(keystoredir)' -Wl,-framework,Foundation -Wl,-framework,Security -Wl,-framework,Cocoa
+libkeychain_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(keystoredir)' -Wl,-framework,Foundation -Wl,-framework,Security
+
+if HAVE_OSX
+libkeychain_plugin_la_LDFLAGS += -Wl,-framework,Cocoa
+endif
if HAVE_DARWIN
keystore_LTLIBRARIES += libkeychain_plugin.la
More information about the vlc-commits
mailing list