jer         15/05/28 17:33:51

  Added:                sandy-0.4-gentoo.patch
  Log:
  Initial commit.
  
  (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 
A792A613)

Revision  Changes    Path
1.1                  app-editors/sandy/files/sandy-0.4-gentoo.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/sandy/files/sandy-0.4-gentoo.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/sandy/files/sandy-0.4-gentoo.patch?rev=1.1&content-type=text/plain

Index: sandy-0.4-gentoo.patch
===================================================================
--- 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




Reply via email to