[tlbuild] Building asymptote statically against libstdc++
Nelson H. F. Beebe
beebe at math.utah.edu
Thu May 12 14:26:18 CEST 2016
Mojca, have you tried the -static-libstdc++ flag for g++? It is
supported since gcc-4.9 (2013 and later). That appears to be the
proper way to avoid dependence on the libstdc++.so file, and is
cleaner and shorter than switching between static and dynamic
libraries.
I'm writing up a new section on problems at the end of this Web page,
http://www.math.utah.edu/pub/texlive/
and that point is already covered.
Here is the gcc info node section documenting the proposed option:
'-static-libstdc++'
When the 'g++' program is used to link a C++ program, it normally
automatically links against 'libstdc++'. If 'libstdc++' is
available as a shared library, and the '-static' option is not
used, then this links against the shared version of 'libstdc++'.
That is normally fine. However, it is sometimes useful to freeze
the version of 'libstdc++' used by the program without going all
the way to a fully static link. The '-static-libstdc++' option
directs the 'g++' driver to link 'libstdc++' statically, without
necessarily linking other libraries statically.
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- University of Utah FAX: +1 801 581 4148 -
- Department of Mathematics, 110 LCB Internet e-mail: beebe at math.utah.edu -
- 155 S 1400 E RM 233 beebe at acm.org beebe at computer.org -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- University of Utah FAX: +1 801 581 4148 -
- Department of Mathematics, 110 LCB Internet e-mail: beebe at math.utah.edu -
- 155 S 1400 E RM 233 beebe at acm.org beebe at computer.org -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------
More information about the tlbuild
mailing list