source: rtems/c/src/make/custom/default.cfg.in @ ea562ee9

4.104.114.84.95
Last change on this file since ea562ee9 was ea562ee9, checked in by Joel Sherrill <joel.sherrill@…>, on 08/12/99 at 18:22:17

Patch from Ralf Corsepius <corsepiu@…>:

After upgrading my linux box to the brand new SuSE 6.2 release, which is
glibc-2.1 based, I came across a bug in RTEMS - IIRC, I even warned you
about it about 1/2 a year ago, but nothing has been done since then :-.

The *.m4 macros to check for SYSV/IPC are broken for linux/glibc2.1,
because they assume that linux always defines union semun, which isn't
true anymore for glibc2.1 (the manpage for semctl states _X_OPEN
specifies it this way). Therefore I have tried to implement a more
general approach for handling SYSV for unix/posix which checks for
presence of struct semun, instead of trying to evaluate OS specific
preprocessor symbols.

This approach is a bit adventureous, because I only tested it with
linux/glibc2.1 and linux/libc5, but not under other Unix variants RTEMS
supports. I am quite confident it will work on other hosts, too, but who
knows :-.

[FYI: I think this might also is the cause of some problems with RedHat?
6.X / Mandrake linux recently reported on the rtems list -- rtems-4.0.0
can not be build for posix on any glibc2.1 based host]

Furthermore the patch below contains a couple of minor fixes and
configuration cleanups, which IMO should be applied before releasing a
new snapshot.

To apply this patch:

cd <source-tree>
patch -p1 < rtems-rc-19990709-8.diff
./autogen

  • Property mode set to 100644
File size: 1.2 KB
Line 
1# Default target settings
2#
3# Some of these values are redefined in the target specific .cfg files.
4#
5# Created by Jiri Gaisler, 16-03-97  (who is owed a debt of gratitude
6#   for converting RTEMS to autoconf.  Thanks. --joel)
7#
8#  $Id$
9#
10
11include $(RTEMS_ROOT)/make/target.cfg
12include $(RTEMS_ROOT)/make/host.cfg
13
14# Specify here the host and target "architectures"
15HOST_ARCH=o-$(RTEMS_HOST)
16ifndef TARGET_ARCH
17TARGET_ARCH=o-@RTEMS_BSP@
18endif
19
20include $(RTEMS_ROOT)/make/main.cfg
21include $(RTEMS_ROOT)/make/bsp.cfg
22
23# use the inline functions instead of the macros
24# ref: src/exec/generic/Makefile
25ifeq ($(RTEMS_USE_MACROS),yes)
26INLINE=macros
27INLINE_UPCASE=
28else
29INLINE=inline
30INLINE_UPCASE=INLINE
31endif
32
33# OBSOLETE: Not used inside the source tree anymore
34# HOST Compiler config file
35# You may also want to specify where the compiler resides here.
36# CONFIG.$(HOST_ARCH).CC         = $(PROJECT_ROOT)/make/compilers/gcc.cfg
37
38## Target compiler config file, if any
39CONFIG.$(TARGET_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg
40
41## GCC specs extension file location
42RTEMS_BSP_SPECS = $(PROJECT_ROOT)/@RTEMS_BSP@/lib/bsp_specs
43
44# Base name of start file
45START_BASE=start
46
Note: See TracBrowser for help on using the repository browser.