diff options
| author | Andrew Turner <andrew@FreeBSD.org> | 2012-06-24 08:43:34 +0000 |
|---|---|---|
| committer | Andrew Turner <andrew@FreeBSD.org> | 2012-06-24 08:43:34 +0000 |
| commit | ec280fdbf51b85d73c443794c68216f1000defd3 (patch) | |
| tree | 558eca903d2518ad05a714025000ffd9cac8ac69 /lib/libelf | |
| parent | f8aa9fd500ba5a5ddfc749d41850a5834f32bb41 (diff) | |
Notes
Diffstat (limited to 'lib/libelf')
| -rw-r--r-- | lib/libelf/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/libelf/Makefile b/lib/libelf/Makefile index fe921cbe674b..5825df13cafc 100644 --- a/lib/libelf/Makefile +++ b/lib/libelf/Makefile @@ -55,9 +55,23 @@ SRCS= elf_begin.c \ ${GENSRCS} INCS= libelf.h gelf.h +# +# We need to link against the correct version of these files. One +# solution is to include ../../sys in the include path. This causes +# problems when a header file in sys depends on a file in another +# part of the tree, e.g. a machine dependent header. +# +SRCS+= sys/elf32.h sys/elf64.h sys/elf_common.h + GENSRCS= libelf_fsize.c libelf_msize.c libelf_convert.c CLEANFILES= ${GENSRCS} -CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../sys +CFLAGS+= -I${.CURDIR} -I. + +sys/elf32.h sys/elf64.h sys/elf_common.h: sys + ln -sf ${.CURDIR}/../../sys/${.TARGET} ${.TARGET} + +sys: + mkdir -p ${.OBJDIR}/sys SHLIB_MAJOR= 1 |
