ifeq "$(CFLAGS)" ""
- $(error CLFAGS not defined.)
+ $(error CFLAGS not defined)
endif
ifeq "$(TOOLS_DIR)" ""
- $(error TOOLS_DIR not defined.)
+ $(error TOOLS_DIR not defined)
endif
LIB = libpakfire_preload.so
$(CC) $(CFLAGS) -o $@ -c $<
$(LIB): $(OBJECTS)
- $(CC) $(CFLAGS) -shared -o $@ $? -ldl
+ $(CC) $(CFLAGS) -shared -o $@ $? -ldl -static-libgcc
.PHONY: install
install: all