Usage Description
- Method 1: Use LD_PRELOAD to overwrite the original implementation.
LD_PRELOAD=/usr/local/ksl/lib/libkpglibc.so <program to be run>
- Method 2: Link libkpglibc.so using -L and -l during GCC compilation.
gcc -o test_memcmp test_memcmp.c -L/usr/local/ksl/lib -lkpglibc
If the gettimeofday or clock_gettime function is required, use LD_PRELOAD to load libkpglibc_time.so.
Parent topic: kpglibc Usage Description