stagit/config.mk
Hiltjo Posthuma 12069466ff config.mk: remove -lc
Thanks quinq!

POSIX/quinq says:

"In the absence of options that inhibit invocation of the link editor, such as
-c or -E, the c99 utility shall cause the equivalent of a -l c option to be
passed to the link editor after the last pathname operand or -l option, causing
it to be searched after all other object files and libraries are loaded."
2016-07-02 12:44:34 +02:00

33 lines
633 B
Makefile

# customize below to fit your system
# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/man
# compiler and linker
#CC = cc
GITINC = /usr/local/include
GITLIB = /usr/local/lib
# includes and libs
INCS = -I${GITINC}
LIBS = -L${GITLIB} -lgit2
# debug
#CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic ${INCS}
#LDFLAGS = ${LIBS}
# optimized
CFLAGS = -O2 -std=c99 ${INCS}
LDFLAGS = -s ${LIBS}
# optimized static
#CFLAGS = -static -O2 -std=c99 ${INCS}
#LDFLAGS = -static -s ${LIBS}
CPPFLAGS = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS}
# OpenBSD 5.9+: use pledge(2)
#CPPFLAGS += -DUSE_PLEDGE