# 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
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
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"
/*
* 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) {
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
#include "udev.h"
-#ifdef __KLIBC__
+#ifndef __GLIBC__
#define __OWN_USERDB_PARSER__
#endif
}
#else
/* needed until /usr/include/sys/inotify.h is working */
-#ifdef __KLIBC__
+#ifndef __GLIBC__
#include <sys/inotify.h>
#else
static inline int inotify_init(void)
{
return syscall(__NR_inotify_add_watch, fd, name, mask);
}
-#endif /* __KLIBC__ */
+#endif /* __GLIBC__ */
#endif /* __NR_inotify_init */
#ifndef IN_CREATE