X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e528b997e87057723d1b823dd86e3f69ebb672b..1b21409b36057d8281675973a7c3a1d77d9c0ddb:/samples/font/makefile.g95?ds=sidebyside diff --git a/samples/font/makefile.g95 b/samples/font/makefile.g95 index 1483aaa476..e7f7787fe5 100644 --- a/samples/font/makefile.g95 +++ b/samples/font/makefile.g95 @@ -12,5 +12,20 @@ WXDIR = ../.. 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)) +