1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Fixes for OpenBSD

This commit is contained in:
Ulrich Wilkens 2018-06-01 03:29:42 +02:00 committed by Jon Trulson
parent 07f272122d
commit 885b65a09a
11 changed files with 42 additions and 31 deletions

View file

@ -172,13 +172,23 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
#define CppCmd /usr/libexec/cpp -traditional
#endif
#define StandardCppOptions -traditional
#define StandardCppDefines /**/
#define PreProcessCmd CppCmd
#define PreIncDir DefaultGccIncludeDir
#ifndef CcCmd
#define CcCmd cc
#if OSMajorVersion > 6 || (OSMajorVersion == 6 && OSMinorVersion >= 2)
#define CcCmd cc
#define CplusplusCmd c++
#define CppArgs -Wno-invalid-pp-token
#else
#define CcCmd gcc
#define CplusplusCmd g++
#define CppArgs /**/
#endif
#ifndef StandardCppDefines
#define StandardCppDefines -traditional CppArgs
#endif
#ifndef AsCmd
#define AsCmd cc -c -x assembler
#endif
@ -914,8 +924,8 @@ install:: fonts.alias @@\
*/
#ifdef HasGcc2ForCplusplus
CXXDEPENDINCLUDE != echo | `CcCmd -print-prog-name=cc1plus` -v 2>&1 | \
sed -n 's/ \(.*[cg]++.*\)/-I\1/p'; rm -f gccdump.s
CXXDEPENDINCLUDE != CcCmd -v -x c++ /dev/null -fsyntax-only \
2>&1 | sed -n 's/^ \(\/.*[cg]++.*\)/-I\1/p'
#define CplusplusDependIncludes $(CXXDEPENDINCLUDE)
#endif