From kde-devel Sun Dec 12 22:16:53 2004 From: Alfons Hoogervorst Date: Sun, 12 Dec 2004 22:16:53 +0000 To: kde-devel Subject: Re: Build question (partly solved) (fixed for gcc 4.0) Message-Id: <20041212231653.05700c13 () proteus ! demon ! nl> X-MARC-Message: https://marc.info/?l=kde-devel&m=110288984331150 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Multipart_Sun__12_Dec_2004_23_16_53_+0100_c3Uu3n4tY+bfaJ0g" --Multipart_Sun__12_Dec_2004_23_16_53_+0100_c3Uu3n4tY+bfaJ0g Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Lo, On 12-12-04 (Sun) 19:58 +0100 Alfons Hoogervorst wrote:=20 | What about the attached patch which works fine with my current setup | (automake 1.7.1, autoconf 2.56)? And patch below makes it work for gcc 4.0 too... Or is this just wishful thinking, and do I miss something obvious? Bye. --=20 Ecuaci=F3n algebraico sin soluci=F3n posible, a menos de poseer profundos conocimientos en matem=E1tica - Revueltas (Ocho Por Radio) --Multipart_Sun__12_Dec_2004_23_16_53_+0100_c3Uu3n4tY+bfaJ0g Content-Type: text/plain; name=kdemacros.header.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=kdemacros.header.patch Index: kdecore/configure.in.in =================================================================== RCS file: /home/kde/kdelibs/kdecore/configure.in.in,v retrieving revision 1.47 diff -u -r1.47 configure.in.in --- kdecore/configure.in.in 17 Nov 2004 11:15:02 -0000 1.47 +++ kdecore/configure.in.in 12 Dec 2004 22:12:53 -0000 @@ -148,8 +148,8 @@ AC_CHECK_HEADERS(sys/mount.h) dnl AC_OUTPUT(kdecore/kde-config.cpp) -dnl AC_OUTPUT(kdecore/kdemacros.h) +AC_CONFIG_HEADERS(kdecore/kdemacros.h) SVGICONS= Index: kdecore/kdemacros.h.in =================================================================== RCS file: /home/kde/kdelibs/kdecore/kdemacros.h.in,v retrieving revision 1.17 diff -u -r1.17 kdemacros.h.in --- kdecore/kdemacros.h.in 21 Nov 2004 19:57:46 -0000 1.17 +++ kdecore/kdemacros.h.in 12 Dec 2004 22:12:53 -0000 @@ -20,6 +20,8 @@ #ifndef _KDE_MACROS_H_ #define _KDE_MACROS_H_ +#undef __KDE_HAVE_GCC_VISIBILITY + /** * The KDE_NO_EXPORT macro marks the symbol of the given variable * to be hidden. A hidden symbol is stripped during the linking step, @@ -34,15 +36,15 @@ * \end */ -#if @HAVE_GCC_VISIBILITY@ -#define KDE_NO_EXPORT __attribute__ ((visibility("hidden"))) -#define KDE_EXPORT __attribute__ ((visibility("default"))) +#if !defined(__KDE_HAVE_GCC_VISIBILITY) && !defined(Q_WS_WIN) +# define KDE_NO_EXPORT +# define KDE_EXPORT #elif defined(Q_WS_WIN) -#define KDE_NO_EXPORT -#define KDE_EXPORT __declspec(dllexport) +# define KDE_NO_EXPORT +# define KDE_EXPORT __declspec(dllexport) #else -#define KDE_NO_EXPORT -#define KDE_EXPORT +# define KDE_NO_EXPORT __attribute__ ((visibility("hidden"))) +# define KDE_EXPORT __attribute__ ((visibility("default"))) #endif /** --Multipart_Sun__12_Dec_2004_23_16_53_+0100_c3Uu3n4tY+bfaJ0g Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --Multipart_Sun__12_Dec_2004_23_16_53_+0100_c3Uu3n4tY+bfaJ0g--