Add library search paths for Darwin

parent fed4f4fe
...@@ -16,6 +16,15 @@ case $CC in ...@@ -16,6 +16,15 @@ case $CC in
LIBADD="-llog" LIBADD="-llog"
;; ;;
esac esac
case "$host_os" in
*darwin*)
for i in /opt/X11 /sw /usr/local
do
test -d $i/include && CPPFLAGS="$CPPFLAGS -I$i/include"
test -d $i/lib && LDFLAGS="$LDFLAGS -L$i/lib"
done
;;
esac
>conftest.$ac_ext >conftest.$ac_ext
echo -n "checking include directory for ft2build.h... " echo -n "checking include directory for ft2build.h... "
......
...@@ -306,6 +306,7 @@ texture_font_init(texture_font_t *self) ...@@ -306,6 +306,7 @@ texture_font_init(texture_font_t *self)
self->height = 0; self->height = 0;
self->ascender = 0; self->ascender = 0;
self->descender = 0; self->descender = 0;
self->linegap = 0;
self->rendermode = RENDER_NORMAL; self->rendermode = RENDER_NORMAL;
self->outline_thickness = 0.0; self->outline_thickness = 0.0;
self->hinting = 1; self->hinting = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment