# Optimization
# OPT = -O
-OPT =
+
+# according to Guillermo Rodriguez Garcia <guille@iies.es> this flag is needed
+# to make the standard div() functio work - otherwise it returns absolutely
+# incorrect results and completely breaks the wxImage class (where it's used
+# extensively)
+OPT = -fno-pcc-struct-return
# Options for ar archiver
# AROPTIONS = crs # For IRIX and Solaris (both SYSVR4).