diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-editors/sandy/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-editors/sandy/files')
-rw-r--r-- | app-editors/sandy/files/sandy-0.4-gentoo.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app-editors/sandy/files/sandy-0.4-gentoo.patch b/app-editors/sandy/files/sandy-0.4-gentoo.patch new file mode 100644 index 000000000000..877c96805ef4 --- /dev/null +++ b/app-editors/sandy/files/sandy-0.4-gentoo.patch @@ -0,0 +1,49 @@ +--- a/config.mk ++++ b/config.mk +@@ -9,19 +9,19 @@ + + # includes and libs (ncurses) + INCS = -I. -I/usr/include +-LIBS = -L/usr/lib -lc -lncursesw ++LIBS = $(shell ${PKG_CONFIG} --libs ncurses) + + # flags +-CPPFLAGS = -DVERSION=\"${VERSION}\" ++CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE + #CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} + #LDFLAGS = -s ${LIBS} +-CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} +-LDFLAGS = ${LIBS} ++CFLAGS += -std=c99 -pedantic -Wall ${INCS} ${CPPFLAGS} ++LDFLAGS += ${LIBS} + + # Solaris + #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" + #LDFLAGS = ${LIBS} + + # compiler and linker +-CC = cc ++CC ?= cc + +--- a/Makefile ++++ b/Makefile +@@ -15,8 +15,7 @@ + @echo "CC = ${CC}" + + .c.o: +- @echo CC $< +- @${CC} -c ${CFLAGS} $< ++ ${CC} -c ${CFLAGS} $< + + ${OBJ}: config.h config.mk + +@@ -25,8 +24,7 @@ + @cp config.def.h $@ + + sandy: ${OBJ} +- @echo CC -o $@ +- @${CC} -o $@ sandy.o ${LDFLAGS} ++ ${CC} ${CFLAGS} -o $@ sandy.o ${LDFLAGS} + + clean: + @echo cleaning |