From 9fb74bc581a6f3fe9c801060a77fa7730e3b446d Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 29 Jul 2022 17:50:59 +0000 Subject: Add comments about statically linking libnetpbm git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4378 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- GNUmakefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 7389c16a..2c172da6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -24,6 +24,18 @@ # The default target is either "merge" or "nonmerge", as determined by # the DEFAULT_TARGET variable set by config.mk. +# Debugging techniques: +# +# To build so you can easily debug with a debugger such as Gdb: +# +# make CFLAGS="-g -O0" +# +# To debug libnetpbm, link it statically into the using program: +# +# make NETPBMLIBTYPE=unixstatic pamcut +# +# (Then 'ldd ./pamcut' to make sure it worked) +# # About the "merge" target: Normally the Makefiles build separate # executables for each program. However, on some systems (especially # those without shared libraries) this can mean a lot of space. In -- cgit 1.4.1