AWARE [SYSTEMS]
AWare Systems, , Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
October 2014

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



New Datamatrix section



Valid HTML 4.01!



Thread

2014.10.07 04:50 "build a static tiff2pdf", by Joel Costigliola
2014.10.07 14:38 "Re: build a static tiff2pdf", by Bob Friesenhahn
2014.10.07 20:37 "Re: build a static tiff2pdf", by Joel Costigliola
2014.10.07 22:30 "Re: build a static tiff2pdf", by Joel Costigliola
2014.10.07 22:40 "Re: build a static tiff2pdf", by Bob Friesenhahn
2014.10.07 23:35 "Re: build a static tiff2pdf", by Joel Costigliola

2014.10.07 23:35 "Re: build a static tiff2pdf", by Joel Costigliola

We are building different versions of tiff2pdf for different environments
indeed. 
Thx Bob
________________________________________
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Sent: Wednesday, 8 October 2014 11:40 a.m.
To: Joel Costigliola
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] build a static tiff2pdf

On Tue, 7 Oct 2014, Joel Costigliola wrote:
>
> So I just ran the link command manually adding the static option:
> gcc -g -O2 -Wall -W -static -o tiff2pdf tiff2pdf.o 
> ../libtiff/.libs/libtiff.a ../port/.libs/libport.a -ljpeg -lm
> /usr/local/lib/libjpeg.a
>
> It's not the cleanest way of building a static binary but at least it
> worked.

Be aware that pure static executables are not necessarily portable to
other systems.  The C shared library interface is much more dependable
than the raw system call interface used between the C library and the
kernel.

Statically linking libjpeg should not be a problem.  Statically
linking libc is not a wise idea.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/