git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5446
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
TARGET=font
OBJECTS = $(TARGET).o
-include $(WXDIR)\src\makeprog.g95
+include $(WXDIR)/src/makeprog.g95
+
+# There is a bug in all 2.95.x versions of gcc that will cause
+# unresolved # references when linking the example here. It has
+# to do with class nesting. Only happens when optimization is
+# turned on.
+#
+# See:
+#
+# Linkname: g++ bug with classes nested inside functions
+# URL: http://gcc.gnu.org/ml/gcc-bugs/1999-11/msg00524.html
+#
+# for more info.
+
+OPT := $(filter-out -O -O1 -O2 -O3 -O4 -O5 -O6 -Os, $(OPT))
+
TARGET=propsize
OBJECTS = $(TARGET).o
-include $(WXDIR)\src\makeprog.g95
+include $(WXDIR)/src/makeprog.g95