[pkg-GD-devel] Bug#556381: libgd2-xpm-dev: Impossible to build a program using -static

Ondřej Surý ondrej at debian.org
Fri Apr 12 09:00:43 UTC 2013

Package: libgd2-xpm-dev
Followup-For: Bug #556381

That's because you are using it wrong, you need to do:

gcc -Wall -static gd_example.c -lgd $(gdlib-config --libs) -o gd_example

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libgd2-xpm-dev depends on:
ii  libfontconfig1-dev             2.9.0-7.1
ii  libfreetype6-dev               2.4.9-1.1
ii  libgd2-xpm                     2.0.36~rc1~dfsg-6.1
ii  libjpeg8-dev [libjpeg-dev]     8d-1
ii  libpng12-dev [libpng12-0-dev]  1.2.49-1
ii  libx11-dev                     2:1.5.0-1
ii  libxpm-dev                     1:3.5.10-1
ii  zlib1g-dev                     1:1.2.7.dfsg-13

libgd2-xpm-dev recommends no packages.

libgd2-xpm-dev suggests no packages.

-- no debconf information

More information about the pkg-GD-devel mailing list