mg

port of mg editor (openbsd to linux)
Log | Files | Refs | README

commit 8d81ee092ffa7dc3452a85314ac8724f359ea566
parent e2149b5ab7c2aceacc7284c0e11926a42d7cdd53
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 28 Nov 2014 16:21:37 +0100

Makefile: add _GNU_SOURCE define for glibc vasprintf(), dont static-link by default

Diffstat:
config.mk | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.mk b/config.mk @@ -15,8 +15,8 @@ LD = $(CC) AR = ar RANLIB = ranlib -CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 +CPPFLAGS = -D_GNU_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 CFLAGS = -Os -std=c99 -Wall -pedantic \ -DDEFFILEMODE=0666 -D__dead="" -I. -Iinclude \ -DFKEYS -DREGEX -DXKEYS -LDFLAGS = -s -static -lcurses -L. -lopenbsd -lutil +LDFLAGS = -s -lcurses -L. -lopenbsd -lutil