How to compile proprietary soft with glibc LGPL license
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