Discussion:
Static link to Xrender
Bruno Coudoin
2009-03-29 11:35:44 UTC
Permalink
When running makepackage I have this related warning:
WARNING: ./bin/gcompris dynamically links against libXrender.so.1,
please link statically.

What is the process to make it link statically in an autotools based
project. I tried to add APBUILD_STATIC="Xrender" in my [BuildPrepare]
section without success.
--
Bruno Coudoin
http://gcompris.net Free educational software for kids
http://toulibre.org Logiciel Libre à Toulouse
http://april.org Promouvoir et défendre le Logiciel Libre


---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/***@public.gmane.org
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/***@public.gmane.org
Jan Niklas Hasse
2009-03-29 11:52:46 UTC
Permalink
Post by Bruno Coudoin
WARNING: ./bin/gcompris dynamically links against libXrender.so.1,
please link statically.
What is the process to make it link statically in an autotools based
project. I tried to add APBUILD_STATIC="Xrender" in my [BuildPrepare]
section without success.
Try APBUILD_STATIC_X=1, see http://autopackage.org/apbuild-apgcc.php

But I think you've discovered a bug there because makepackage should
not warn about this as we changed the default behaviour. Which version
of autopackage are you using?

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/***@public.gmane.org
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/***@public.gmane.org
Bruno Coudoin
2009-03-29 13:10:11 UTC
Permalink
Post by Jan Niklas Hasse
Post by Bruno Coudoin
WARNING: ./bin/gcompris dynamically links against libXrender.so.1,
please link statically.
What is the process to make it link statically in an autotools based
project. I tried to add APBUILD_STATIC="Xrender" in my [BuildPrepare]
section without success.
Try APBUILD_STATIC_X=1, see http://autopackage.org/apbuild-apgcc.php
But I think you've discovered a bug there because makepackage should
not warn about this as we changed the default behaviour. Which version
of autopackage are you using?
I am using the latest 1.4.1 autopackage-devel

By using APBUILD_STATIC_X=1 the warning is no more there. But when I
install it is still dynamically linked to Xrender libraries so I assume
it does not work.
--
Bruno Coudoin
http://gcompris.net Free educational software for kids
http://toulibre.org Logiciel Libre à Toulouse
http://april.org Promouvoir et défendre le Logiciel Libre


---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/***@public.gmane.org
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/***@public.gmane.org
Justin Karneges
2009-03-29 15:29:25 UTC
Permalink
Post by Jan Niklas Hasse
Post by Bruno Coudoin
WARNING: ./bin/gcompris dynamically links against libXrender.so.1,
please link statically.
What is the process to make it link statically in an autotools based
project. I tried to add APBUILD_STATIC="Xrender" in my [BuildPrepare]
section without success.
Try APBUILD_STATIC_X=1, see http://autopackage.org/apbuild-apgcc.php
But I think you've discovered a bug there because makepackage should
not warn about this as we changed the default behaviour. Which version
of autopackage are you using?
I use APBUILD_NO_STATIC_X and I get a warning saying this is default behavior.
But then I get a warning about Xrender being dynamic.

As I understand it from previous discussion on this mailing list, you want all
X libs dynamic all the time, so probably makepackage shouldn't bother you
about Xrender being dynamic.

-Justin

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/***@public.gmane.org
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/***@public.gmane.org
Jan Niklas Hasse
2009-03-30 12:11:01 UTC
Permalink
I have removed the warning in r2562: http://trac.autopackage.org/changeset/2562

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/***@public.gmane.org
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/***@public.gmane.org
Loading...