Compiling gcc-1.37 and X11R4 with gcc under A/UX 2.0
lamarche at ireq.hydro.qc.ca
lamarche at ireq.hydro.qc.ca
Thu Aug 30 08:08:01 AEST 1990
I was succesfull in recompiling X11R4 with gcc under A/UX 2.0 using the sources
I had since mars 1990 under A/UX 1.1. I had to use my old binaries of gcc to
recompile my new version of it under 2.0. I was unsuccesfull doing that with
the version provided at apple.com. Here are the few modifications that I made
to my sources.
******************************
* gcc-1.37 for A/UX 1.1 *
******************************
Makefile:
< CFLAGS = -O -g $(XCFLAGS) -DAUX_ASM
---
> CFLAGS = -O -g $(XCFLAGS) -DAUX_ASM -DAUX2 -D_BSD_SOURCE -D_SYSV_SOURCE
********************************
* X11R4 with the gcc *
********************************
mit/config/Makefile.ini:
< CFLAGS = $(BOOTSTRAPCFLAGS) $(CDEBUGFLAGS)
---
< CFLAGS = $(BOOTSTRAPCFLAGS) $(CDEBUGFLAGS) -DAUX2 -D_SYSV_SOURCE -D_BSD_SOURCE
mit/config/macII.cf:
< #define OSName A/UX 1.1
< #define OSMajorVersion 1
< #define OSMinorVersion 1
< #define BootstrapCFlags -DmacII
< #define StandardDefines -DmacII -DSYSV
< #define StandardCppDefines -DmacII -DSYSV
---
> #define OSName A/UX 2.0
> #define OSMajorVersion 2
> #define OSMinorVersion 0
> #define StandardDefines -DSYSV -D_SYSV_SOURCE -D_BSD_SOURCE -DAUX2
> #define StandardCppDefines -DSYSV -D_SYSV_SOURCE -D_BSD_SOURCE -DAUX2
mit/config/site.def:
*** Ensure that HasGcc is defined
*** Modify
< #define CcCmd gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings \
< -traditional
---
> #define CcCmd gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings \
< -traditional -DAUX2 -D_SYSV_SOURCE -D_BSD_SOURCE
*** and
< #define CcCmd gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return
---
> #define CcCmd gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings \
> -DAUX2 -D_SYSV_SOURCE -D_BSD_SOURCE
I have tested most of the applications and the server and everything looks fine.
I hope this can help.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| Louis Lamarche, IREQ | lamarche at IREQ.Hydro.Qc.CA
| CP 1000, Varennes | or
| QC, Canada, J3X 1S1 | 514-652-8077 (office) 514-324-2919 (home)
More information about the Comp.unix.aux
mailing list