dmenu-4.7-gentoo.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --- a/config.mk
  2. +++ b/config.mk
  3. @@ -5,8 +5,8 @@
  4. PREFIX = /usr/local
  5. MANPREFIX = ${PREFIX}/share/man
  6. -X11INC = /usr/X11R6/include
  7. -X11LIB = /usr/X11R6/lib
  8. +X11INC = -I/usr/X11R6/include
  9. +X11LIB = -L/usr/X11R6/lib
  10. # Xinerama, comment if you don't want it
  11. XINERAMALIBS = -lXinerama
  12. @@ -14,18 +14,18 @@
  13. # freetype
  14. FREETYPELIBS = -lfontconfig -lXft
  15. -FREETYPEINC = /usr/include/freetype2
  16. +FREETYPEINC = -I/usr/include/freetype2
  17. # OpenBSD (uncomment)
  18. #FREETYPEINC = ${X11INC}/freetype2
  19. # includes and libs
  20. -INCS = -I${X11INC} -I${FREETYPEINC}
  21. -LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
  22. +INCS = ${X11INC} ${FREETYPEINC}
  23. +LIBS = ${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
  24. # flags
  25. -CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
  26. -CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
  27. -LDFLAGS = -s ${LIBS}
  28. +CPPFLAGS += -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
  29. +CFLAGS += -ansi -pedantic -Wall $(INCS) $(CPPFLAGS)
  30. +LDFLAGS += ${LIBS}
  31. # compiler and linker
  32. CC = cc