[PATCH xdm] Re-introduce the ability of staticcally linking the greeter.

Alan Coopersmith alan.coopersmith at oracle.com
Mon Nov 7 12:56:27 PST 2011


On 11/07/11 12:38, Rémi Cardona wrote:
> Le 07/11/2011 20:57, Matthieu Herrb a écrit :
>> +if test "x$DYNAMIC_GREETER" = "xno"; then
>> +STATIC_GREETER_CFLAGS="-DGREET_USER_STATIC"
>> +STATIC_GREETER_LIBS="-L../greeter -lXdmGreet"
>> +fi
>> +
>> +AC_MSG_RESULT([$DYNAMIC_GREETER])
>> +AM_CONDITIONAL(DYNAMIC_GREETER, test x$DYNAMIC_GREETER = xyes)
>> +
>> PKG_CHECK_MODULES(XDMGREET, xt>= 1.0 x11 xext)
>
> You probably need to do:
>
> XDMGREET_LIBS=`$PKG_CONFIG --libs --static xt>= 1.0 x11 xext`
>
> (maybe --cflags too). Otherwise you may miss libraries that are only in
> Required.private in the above pkg-config files.

That shouldn't be needed - this is about making the greeter statically
linked into the xdm binary instead of being a dlopen'ed plugin module,
not about making it statically link with all the system/X11 libraries.


-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list