Building XFCE on Cygwin
Brian J. Tarricone
bjt23 at cornell.edu
Fri Jul 9 17:10:39 CEST 2004
On Fri, 9 Jul 2004, Maarten Boekhold wrote:
> Brian J. Tarricone wrote:
> > yeah, for the ones that are missing the appropriate _LIBADD or _LDFLAGS
> > section, you can simply add them. all of the variables look like
> > *_CFLAGS and *_LDFLAGS, and the first half is just the all-caps prefix
> > given in the configure.ac line that checks for its presence (the
> > BM_DEPEND() and BM_DEPEND_CHECK() lines).
> So if I need to add the gobject/glib etc. libs to the LDFLAGS of a
> library, I will need to add something like:
> BM_DEPEND([GOBJECT], [gobject-2.0], [2.0.0])
> to configure.ac, and then I will have access to
> GOBJECT_LIBS/GOBJECT_LDFLAGS/GOBJECT_CFLAGS in Makefile.am?
i actually misunderstood what you were saying, as i didn't realise that
some of them weren't even in configure.ac. but yeah, you're right,
that's how it's done. also, as i'm sure you know but just left out, the
variables must be prefixed and suffixed with "@" in Makefile.am.
> >>btw. Regarding adding -no-undefined everywhere, originally I was
> >>planning to add this only to the _la_LDFLAGS when we are on cygwin. But
> >>one of the cygwin developers told me that this flag doesn't hurt on
> >>other platforms at all, so we could easily just add it everywhere. How
> >>do the XFCE developers feel about this?
> > if that really is the case, i personally don't care. however, i'm no
> > libtool expert, and i'd like to hear it from someone who knows a bit
> > more than i do. benny? olivier? jasper? ...?
> OK, let's wait for that then. Otherwise it wouldn't be difficult (I
> suppose, I've never used autoconf&friends before) to add a rule to
> configure.ac that conditionally sets something like
> @LIBTOOL_NO_UNDEFINED@ to either "" or "-no-undefined".
yeah, i believe there's a macro for detecting if cygwin is present or
not, and then you can do something like:
AM_CONDITIONAL([HAVE_CYGWIN], [(some shell syntax that figures out if
cygwin is here based on the macro's output)])
in configure.ac, and then in the Makefile.am files, you can do, e.g.,:
libxfce4util_la_LDFLAGS += -no-undefined
a quick google search didn't yield a .m4 file for detecting if cygwin is
present, but i know it's floating around somewhere.
More information about the Xfce4-dev