[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gcc linking question

Hello, I am in the need of some help with compiling logrotate.
I am a linux system administrator at a medium ISP.  I have been using linux for years, but I don't have much C/C++ experience, so I can't seem to figure this one out.
I hope I am saying this right....
I want to compile logrotate with the static library libpopt.a and not dynamically linked to libpopt.so
Currently ldd does show that by default it dynamically links, how can I change this behaviour?
I want to keep the dynamic linking to the other libraries, I just want to change libpopt
root:/src/logrotate-3.7.4# ldd logrotate
        linux-gate.so.1 =>  (0xffffe000)
        libpopt.so.0 => /usr/local/lib/libpopt.so.0 (0xb7ede000)
        libc.so.6 => /lib/libc.so.6 (0xb7db5000)
        /lib/ld-linux.so.2 (0xb7ee9000)