Actions
Feature #38
openNeed ability to create static and dynamic shared libraries.
Description
Example:
CC=cc LIBNAME=moderr LIBREV=1 LIBVER=1.0.0 TEST=test rm *.out *.o *.a *.0 *.1 test_* *.so # --- dynamic --- $CC -c -fPIC $LIBNAME.c -o $LIBNAME.o $CC -shared -Wl,-soname,lib${LIBNAME}.so.${LIBREV} -o lib${LIBNAME}.so.$LIBVER $LIBNAME.o ldconfig -n . ln -s libmoderr.so.1 libmoderr.so $CC $TEST.c -L. -lmoderr -o ${TEST}_dynamic # --- static --- ar rcs lib${LIBNAME}.a $LIBNAME.o $CC $TEST.c -static -L. -lmoderr -o ${TEST}_static
Updated by Kolan Sh almost 13 years ago
- Target version changed from 2.0.0 to 3.0.0
Updated by Kolan Sh over 10 years ago
- Status changed from 5 to New
- % Done changed from 10 to 0
Actions