Hello everyone,

recently I am trying to compile postfix in static linking so I can move
around the server without any dependency.

I tried to pass the -static to the gcc compiler with

make makefiles CC='gcc -Wmissing-prototypes' OPT='-static -O' DEBUG='-g'

when I do make command, it always jump out the process and give me this
error

gcc -Wmissing-prototypes -DHAS_PCRE  -g -static -O -I. -I../../include
-DLINUX2 -o master master.o master_conf.o master_ent.o master_sig.o
master_avail.o master_spawn.o master_service.o master_status.o
master_listen.o master_vars.o master_wakeup.o master_watch.o master_flow.o
../../lib/libglobal.a ../../lib/libutil.a -lpcre -ldb -lnsl -lresolv
/usr/bin/ld: cannot find -ldb
collect2: ld returned 1 exit status
make: *** [master] Error 1
make: *** [update] Error 1


but if I compile it without changes of the Makefile it's all okay.

I am not an programmer and hardly understand the compiling process.
so can anyone tell me what I have done wrong?

I am new to the list and wasn't sure if it's suitable to post questions
here.
so please advice if I should try another.

Thanks



Damian J. L. Lee

Reply via email to