shithub: rgbds

Download patch

ref: 95cd960b3b11554c27c7b2952b08fc43f02cb5cf
parent: bed43d253016fa8bb0a3a8eddabe214ee3b26762
author: yenatch <[email protected]>
date: Mon Sep 12 17:12:58 EDT 2016

Fix the order of flags when including libpng.

This apparently does matter.

--- a/Makefile
+++ b/Makefile
@@ -81,7 +81,7 @@
 	$Q${CC} ${REALCFLAGS} -o $@ ${rgbfix_obj}
 
 rgbgfx: ${rgbgfx_obj}
-	$Q${CC} `${PKG_CONFIG} --libs libpng` ${REALCFLAGS} -o $@ ${rgbgfx_obj}
+	$Q${CC} ${REALCFLAGS} -o $@ ${rgbgfx_obj} `${PKG_CONFIG} --libs libpng`
 
 .y.c:
 	$Q${YACC} -d ${YFLAGS} -o $@ $<