PDA

View Full Version : How to compile proprietary soft with glibc LGPL license



intmail
11-06-2006, 08:08 AM
Hello,

I would to like to know how to compile program to obtain a proprietary executable. The license of glibc is Lesser GPL and it say that if you want to build a proprietary software (no distribution of source code) you must not link the LGPL library in your executable.

What kind of linking I have to use ? Could some one tell me how to build proprietary with glibc?

I use ncurses and glibc (especially math.h) as main library and I compile like this:
gcc -lncurses -lm myprog.c -o myprog.bin

Thank you.

CornedBee
11-07-2006, 05:42 AM
You must use shared linking, which is the default anyway.