#---------------------------------------------------------------
-override CFLAGS += -g -fexceptions
+override CFLAGS += -g -fexceptions
override CFLAGS += -I$(srcdir) -DFRONTEND -DSYSCONFDIR='"$(sysconfdir)"'
override CFLAGS += -DUSE_VERSION=$(USE_VERSION)
# for gcc >= 3.2.2 set GLIBCPP_FORCE_NEW at runtime instead
#override CXXFLAGS += -D__USE_MALLOC
+# this seems to be needed by gcc3.3.2 / Solaris7 combination
+# as reported by Havard Tveite <havard.tveite@nlh.no>
+override CXXFLAGS += -fPIC
+
#---------------------------------------------------------------
# Add index selectivity to C flags
#