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 | |
---|
11 | include $(RTEMS_ROOT)/make/target.cfg |
---|
12 | include $(RTEMS_ROOT)/make/host.cfg |
---|
13 | |
---|
14 | # Specify here the host and target "architectures" |
---|
15 | HOST_ARCH=o-$(RTEMS_HOST) |
---|
16 | ifndef TARGET_ARCH |
---|
17 | TARGET_ARCH=o-@RTEMS_BSP@ |
---|
18 | endif |
---|
19 | |
---|
20 | include $(RTEMS_ROOT)/make/main.cfg |
---|
21 | include $(RTEMS_ROOT)/make/bsp.cfg |
---|
22 | |
---|
23 | # use the inline functions instead of the macros |
---|
24 | # ref: src/exec/generic/Makefile |
---|
25 | ifeq ($(RTEMS_USE_MACROS),yes) |
---|
26 | INLINE=macros |
---|
27 | INLINE_UPCASE= |
---|
28 | else |
---|
29 | INLINE=inline |
---|
30 | INLINE_UPCASE=INLINE |
---|
31 | endif |
---|
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 |
---|
39 | CONFIG.$(TARGET_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg |
---|
40 | |
---|
41 | ## GCC specs extension file location |
---|
42 | RTEMS_BSP_SPECS = $(PROJECT_ROOT)/@RTEMS_BSP@/lib/bsp_specs |
---|
43 | |
---|
44 | # Base name of start file |
---|
45 | START_BASE=start |
---|
46 | |
---|
Note: See
TracBrowser
for help on using the repository browser.