https://bugs.kde.org/show_bug.cgi?id=401018

RJVB <rjvber...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kdelibs-b...@kde.org
          Component|general                     |general
            Product|extra-cmake-modules         |frameworks-kconfig
            Version|unspecified                 |5.47.0
           Assignee|ecm-bugs-n...@kde.org       |matt...@mjdsystems.ca

--- Comment #7 from RJVB <rjvber...@gmail.com> ---
Moving this to KConfig because it looks like kconfig_compiler_kf5 fails with
AppleClang, generating empty export macros:

```
> diff -u libkcddb-18.08.3/build-*clang/libkcddb/kcddb_export.h
--- libkcddb-18.08.3/build-appleclang/libkcddb/kcddb_export.h   2018-11-14
00:04:58.000000000 +0100
+++ libkcddb-18.08.3/build-clang/libkcddb/kcddb_export.h        2018-11-13
23:18:12.000000000 +0100
@@ -9,15 +9,15 @@
 #  ifndef KCDDB_EXPORT
 #    ifdef KF5Cddb_EXPORTS
         /* We are building this library */
-#      define KCDDB_EXPORT 
+#      define KCDDB_EXPORT __attribute__((visibility("default")))
 #    else
         /* We are using this library */
-#      define KCDDB_EXPORT 
+#      define KCDDB_EXPORT __attribute__((visibility("default")))
 #    endif
 #  endif

 #  ifndef KCDDB_NO_EXPORT
-#    define KCDDB_NO_EXPORT 
+#    define KCDDB_NO_EXPORT __attribute__((visibility("hidden")))
 #  endif
 #endif
```

Why this happens only for certain projects is a mystery to me (as is the way
this command can know what compiler syntax to generate).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to