blob: 389484e9b4bf4b683a5cb7bf5496a53ff4479b41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Makefile.in for uClibc
#
# Licensed under LGPL v2.1, see the file COPYING.LIB in this tarball for details.
#
LIB_NAME:=libdl
# psm: I do not know if the order of includes is relevant
# to be sure I added them first
CFLAGS:=-I$(top_builddir)ldso/include -I$(top_builddir)ldso/ldso $(CFLAGS) $(SSP_ALL_CFLAGS)
CFLAGS+=-DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\"
ifeq ($(SUPPORT_LD_DEBUG),y)
CFLAGS+=-D__SUPPORT_LD_DEBUG__
endif
# BEWARE!!! At least mips* will die if -O0 is used!!!
ifeq ($(TARGET_ARCH),mips)
CFLAGS:=$(CFLAGS:-O0=-O1)
endif
CFLAGS-.os=-DSHARED
# we adapt CFLAGS, because libdl.a has an additional object
ifeq ($(DOPIC),y)
CFLAGS-.o=$(PICFLAG)
resolv:=$(top_builddir)ldso/ldso/$(TARGET_ARCH)/resolve.os
else
resolv:=$(top_builddir)ldso/ldso/$(TARGET_ARCH)/resolve.o
endif
EXTRA_LINK_OPTS:=-fini dl_cleanup
# we need for all cases a "full" libdl.a the pic version used to build libdl.so misses $(resolv)
# because it is linked against ld.so
DOPIC=n
srcdir=$(top_srcdir)ldso/$(LIB_NAME)
$(LIB_NAME)_DIR:=$(top_builddir)ldso/$(LIB_NAME)
$(LIB_NAME)_SRC:=$(srcdir)/libdl.c
$(LIB_NAME)_A_ADD:=$(resolv)
libso-$(HAVE_SHARED)+=$(top_builddir)lib/$(LIB_NAME).so
liba-$(HAVE_SHARED)+=$(top_builddir)lib/$(LIB_NAME).a
libclean-y+=$(LIB_NAME)_clean
include $(top_srcdir)Makefile.libs
# !!! these lines have to come after including Makefile.libs !!!
EXTRA_LINK_LIBS+=$(top_builddir)lib/$(UCLIBC_LDSO)
|