mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
Fix undefined symbols, which causes issues with libdrm and probably other packages too.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10214 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
1ad30b9715
commit
d88f077bfc
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
SHELL=/bin/bash
|
SHELL=/bin/bash
|
||||||
SYSTEMD_VERSION=198
|
SYSTEMD_VERSION=198
|
||||||
VERSION=198-2
|
VERSION=198-3
|
||||||
|
|
||||||
ifeq ($(V),)
|
ifeq ($(V),)
|
||||||
VB = @
|
VB = @
|
||||||
@ -28,7 +28,7 @@ OPTIONS = -O2 -pipe -ffast-math -fno-common -fdiagnostics-show-option \
|
|||||||
|
|
||||||
OPTIONS2 := $(OPTIONS) -fvisibility=hidden
|
OPTIONS2 := $(OPTIONS) -fvisibility=hidden
|
||||||
|
|
||||||
LDFLAGS = -pthread -lrt -Wl,--as-needed -Wl,--gc-sections
|
LDFLAGS = -pthread -lrt -Wl,--as-needed -Wl,--gc-sections -Wl,--no-undefined
|
||||||
LDFLAGS2 := $(LDFLAGS) -lblkid -lkmod
|
LDFLAGS2 := $(LDFLAGS) -lblkid -lkmod
|
||||||
|
|
||||||
DEF = -include cfg.h \
|
DEF = -include cfg.h \
|
||||||
@ -82,7 +82,9 @@ COMMON_SRCS = log.c \
|
|||||||
sd-daemon.c \
|
sd-daemon.c \
|
||||||
time-util.c \
|
time-util.c \
|
||||||
fileio.c \
|
fileio.c \
|
||||||
strxcpyx.c
|
strxcpyx.c \
|
||||||
|
env-util.c \
|
||||||
|
utf8.c
|
||||||
|
|
||||||
COMMON_OBJS := $(addprefix build/, $(COMMON_SRCS:.c=.o))
|
COMMON_OBJS := $(addprefix build/, $(COMMON_SRCS:.c=.o))
|
||||||
|
|
||||||
@ -149,7 +151,7 @@ SED_PROCESS = \
|
|||||||
-e 's|@includedir@|/usr/include|g' \
|
-e 's|@includedir@|/usr/include|g' \
|
||||||
< $< > $@
|
< $< > $@
|
||||||
|
|
||||||
SECURE = $(shell if nm /lib/libc.so.6 | grep -q " secure_getenv"; \
|
SECURE = $(shell if objdump -T /lib/libc.so.6 | grep -q " secure_getenv"; \
|
||||||
then echo yes; fi)
|
then echo yes; fi)
|
||||||
|
|
||||||
ifeq "$(SECURE)" "yes"
|
ifeq "$(SECURE)" "yes"
|
||||||
@ -205,6 +207,7 @@ build/$(LIBUDEV_REAL_NAME): $(LIBUDEV_OBJS) build/$(COMMON_LIB)
|
|||||||
-Wl,--no-whole-archive -ldl -lrt -O2 \
|
-Wl,--no-whole-archive -ldl -lrt -O2 \
|
||||||
-Wl,--as-needed \
|
-Wl,--as-needed \
|
||||||
-Wl,--gc-sections \
|
-Wl,--gc-sections \
|
||||||
|
-Wl,--no-undefined \
|
||||||
-Wl,-soname,$(LIBUDEV_LINK_NAME) \
|
-Wl,-soname,$(LIBUDEV_LINK_NAME) \
|
||||||
-o build/$(LIBUDEV_REAL_NAME)
|
-o build/$(LIBUDEV_REAL_NAME)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user