chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eb82b76
)
switch ifdef __KLIBC__ to ifndef __GLIBC__
author
Kay Sievers
<kay.sievers@suse.de>
Fri, 4 Aug 2006 22:35:05 +0000
(
00:35
+0200)
committer
Kay Sievers
<kay.sievers@suse.de>
Fri, 4 Aug 2006 22:35:05 +0000
(
00:35
+0200)
Makefile
patch
|
blob
|
history
README
patch
|
blob
|
history
extras/scsi_id/scsi_id.c
patch
|
blob
|
history
test/simple-build-check.sh
patch
|
blob
|
history
udev_libc_wrapper.c
patch
|
blob
|
history
udev_libc_wrapper.h
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 75789b9996da388627022b0e0f65d41d36020a31..bab1732da4383ffcd4ddf36f0a1df795059014aa 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-33,9
+33,6
@@
USE_GCOV = false
# include Security-Enhanced Linux support
USE_SELINUX = false
# include Security-Enhanced Linux support
USE_SELINUX = false
-# comile with klibc instead of glibc
-USE_KLIBC = false
-
# set this to create statically linked binaries
USE_STATIC = false
# set this to create statically linked binaries
USE_STATIC = false
@@
-142,12
+139,6
@@
ifeq ($(strip $(USE_GCOV)),true)
LDFLAGS += -fprofile-arcs
endif
LDFLAGS += -fprofile-arcs
endif
-ifeq ($(strip $(USE_KLIBC)),true)
- KLCC = /usr/bin/$(CROSS_COMPILE)klcc
- CC = $(KLCC)
- LD = $(KLCC)
-endif
-
ifeq ($(strip $(USE_SELINUX)),true)
UDEV_OBJS += udev_selinux.o
LIB_OBJS += -lselinux -lsepol
ifeq ($(strip $(USE_SELINUX)),true)
UDEV_OBJS += udev_selinux.o
LIB_OBJS += -lselinux -lsepol
diff --git
a/README
b/README
index 7ac1d4509ccfbed7877e9efb2d3140d76da032d9..92088ac6f5e00e505b218d9031fb09eb82b6f714 100644
(file)
--- a/
README
+++ b/
README
@@
-69,10
+69,6
@@
Compile Options:
USE_SELINUX
If set to 'true', udev will be built with SELinux support
enabled. This is disabled by default.
USE_SELINUX
If set to 'true', udev will be built with SELinux support
enabled. This is disabled by default.
- USE_KLIBC
- If set to 'true', udev is built and linked against klibc.
- Default value is 'false'. KLCC specifies the klibc compiler
- wrapper, usually located at /usr/bin/klcc.
EXTRAS
list of helper programs in extras/ to build.
make EXTRAS="extras/cdrom_id extras/scsi_id extras/volume_id"
EXTRAS
list of helper programs in extras/ to build.
make EXTRAS="extras/cdrom_id extras/scsi_id extras/volume_id"
diff --git
a/extras/scsi_id/scsi_id.c
b/extras/scsi_id/scsi_id.c
index 2ffc95fbfed69605ad8caf15315f6a8b5857b703..446df70949c010f297c3a660f258d25278f764b6 100644
(file)
--- a/
extras/scsi_id/scsi_id.c
+++ b/
extras/scsi_id/scsi_id.c
@@
-402,8
+402,7
@@
static int set_options(int argc, char **argv, const char *short_opts,
/*
* optind is a global extern used by getopt. Since we can call
* set_options twice (once for command line, and once for config
/*
* optind is a global extern used by getopt. Since we can call
* set_options twice (once for command line, and once for config
- * file) we have to reset this back to 1. [Note glibc handles
- * setting this to 0, but klibc does not.]
+ * file) we have to reset this back to 1.
*/
optind = 1;
while (1) {
*/
optind = 1;
while (1) {
diff --git
a/test/simple-build-check.sh
b/test/simple-build-check.sh
index 6d7272f80e6ff7ca89102729cefff94f547d0b2d..6a03608477e02eeddc8aea118566fb3e1fc2965b 100755
(executable)
--- a/
test/simple-build-check.sh
+++ b/
test/simple-build-check.sh
@@
-23,14
+23,6
@@
make clean EXTRAS="$EXTRAS" >/dev/null
make all $MAKEOPTS USE_LOG=false EXTRAS="$EXTRAS" || exit
echo -e "\n\n"
make all $MAKEOPTS USE_LOG=false EXTRAS="$EXTRAS" || exit
echo -e "\n\n"
-# klibc build
-if [ -n "$KLCC" -a -e "$KLCC" ]; then
- echo KLCC: "$KLCC"
- make clean EXTRAS="$EXTRAS" >/dev/null
- make all -j4 $MAKEOPTS USE_KLIBC=true DEBUG=true EXTRAS="$EXTRAS" KLCC="$KLCC" || exit
- echo -e "\n\n"
-fi
-
# install in temporary dir and show it
TEMPDIR="`pwd`/.tmp"
rm -rf $TEMPDIR
# install in temporary dir and show it
TEMPDIR="`pwd`/.tmp"
rm -rf $TEMPDIR
diff --git
a/udev_libc_wrapper.c
b/udev_libc_wrapper.c
index 1711811e83f0483fadc94e8a46a39c0876f50285..48a893cfb10040031178781434a6d7b7fa846ed2 100644
(file)
--- a/
udev_libc_wrapper.c
+++ b/
udev_libc_wrapper.c
@@
-30,7
+30,7
@@
#include "udev.h"
#include "udev.h"
-#if
def __K
LIBC__
+#if
ndef __G
LIBC__
#define __OWN_USERDB_PARSER__
#endif
#define __OWN_USERDB_PARSER__
#endif
diff --git
a/udev_libc_wrapper.h
b/udev_libc_wrapper.h
index 6755aa1c7473ace63c60eba5a029d6e41060a6ee..21dbce6474fb1d44868f078edf22ec8457779320 100644
(file)
--- a/
udev_libc_wrapper.h
+++ b/
udev_libc_wrapper.h
@@
-105,7
+105,7
@@
static inline int inotify_add_watch(int fd, const char *name, uint32_t mask)
}
#else
/* needed until /usr/include/sys/inotify.h is working */
}
#else
/* needed until /usr/include/sys/inotify.h is working */
-#if
def __K
LIBC__
+#if
ndef __G
LIBC__
#include <sys/inotify.h>
#else
static inline int inotify_init(void)
#include <sys/inotify.h>
#else
static inline int inotify_init(void)
@@
-117,7
+117,7
@@
static inline int inotify_add_watch(int fd, const char *name, uint32_t mask)
{
return syscall(__NR_inotify_add_watch, fd, name, mask);
}
{
return syscall(__NR_inotify_add_watch, fd, name, mask);
}
-#endif /* __
K
LIBC__ */
+#endif /* __
G
LIBC__ */
#endif /* __NR_inotify_init */
#ifndef IN_CREATE
#endif /* __NR_inotify_init */
#ifndef IN_CREATE