4.104.114.84.95
Last change
on this file since 9e52b29 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:
938 bytes
|
Line | |
---|
1 | # |
---|
2 | # Config file for the posix based RTEMS |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | # include $(RTEMS_ROOT)/make/target.cfg |
---|
8 | include $(RTEMS_ROOT)/make/host.cfg |
---|
9 | |
---|
10 | # Set them here, otherwise gcc-target-default.cfg will set them to values |
---|
11 | # not working on some os variants (linux-RH5.0, glibc versions 2.0.0 - 2.0.7) |
---|
12 | # These should be available on all unices |
---|
13 | LIBC_LIBC=-lc |
---|
14 | LIBC_LIBM=-lm |
---|
15 | |
---|
16 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_HOST)-posix.cfg |
---|
17 | |
---|
18 | # Not applicable - let's override 'em |
---|
19 | LINKCMDS= |
---|
20 | START_FILE= |
---|
21 | START_BASE= |
---|
22 | |
---|
23 | # Here is the rule to actually build a $(ARCH)/foo.exe |
---|
24 | # It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm |
---|
25 | # Usage ref: src/tests/sptest/sp1/Makefile |
---|
26 | # |
---|
27 | # 'NODE' is set to 1 or 2 for multi cpu tests (ref: mptests/mp01/node1/Makefile) |
---|
28 | # If NODE is set as an environment variable, don't trust it, zero it out. |
---|
29 | # (NODE turns out to be a very common environment variable) |
---|
30 | ifeq (,$(NODE)) |
---|
31 | NODE=0 |
---|
32 | else |
---|
33 | ifeq "$(origin NODE)" "environment" |
---|
34 | NODE=0 |
---|
35 | endif |
---|
36 | endif |
---|
Note: See
TracBrowser
for help on using the repository browser.