- Pass -Wl,-export-dynamic to LDFLAGS instead of CFLAGS in order to avoid warning: cc: warning: -Wl,-export-dynamic: 'linker' input unused [-Wunused-command-line-argument]