Do not define QT_AOUT_UNDERSCORE in freebsd-g++'s mkspec.
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>
Mon, 16 Apr 2012 20:03:09 +0000 (17:03 -0300)
committerQt by Nokia <qt-info@nokia.com>
Tue, 17 Apr 2012 14:28:46 +0000 (16:28 +0200)
According to FreeBSD svn r52802 from 1999 the -aout compiler option and
the QT_AOUT_UNDERSCORE trick were already obsolete.

Since the FreeBSD project itself only supports versions 7 and above
these days, the definition can be safely removed.

Change-Id: I324d5d5b136a6560d9e1b5c81b93efc32d87cdc2
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
mkspecs/freebsd-g++/qplatformdefs.h

index 73ef0b0..90640bf 100644 (file)
 #define QT_SNPRINTF            ::snprintf
 #define QT_VSNPRINTF           ::vsnprintf
 
-// Older FreeBSD versions may still use the a.out format instead of ELF.
-// From the FreeBSD man pages:
-//     In previous implementations, it was necessary to prepend an
-//     underscore to all external symbols in order to gain symbol
-//     compatibility with object code compiled from the C language.
-//     This is still the case when using the (obsolete) -aout option to
-//     the C language compiler.
-#ifndef __ELF__
-#define QT_AOUT_UNDERSCORE
-#endif
-
 #endif // QPLATFORMDEFS_H