[Asterisk-Dev] Makefile problems
Kristian Kielhofner
kris at krisk.org
Thu Oct 6 22:39:53 MST 2005
Tzafrir Cohen wrote:
> On Fri, Oct 07, 2005 at 12:09:34AM -0500, Kristian Kielhofner wrote:
>
>>Hello everyone,
>>
>> Lines 309-312 of asterisk Makefile:
>>
>>ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/dlfcn.h),)
>> OBJS+= dhfcn.o
>> ASTCFLAGS+=-DDLFCNCOMPAT
>>endif
>>
>>
>> Check for the presence of /usr/include/dlfcn.h. If it exists, add
>> an object called dhfcn.o and some extra CFLAGS. (Just trying to give you
>>my interpretation to make sure it's accurate).
>>
>> This is all well and good, except that if your system keeps dlfcn.h
>> in /include/ (or anywhere but /usr/include), asterisk will fail because the
>>Makefiles evidently don't know how to make an object called dhfcn.o:
>
>
> Look in those as well.
>
> # using $(for) this could probably be made shorter:
> dhfcn_inc:=$(first $(wildcard $(CROSS_COMPILE_TARGET)/usr/include/dlfcn.h $(CROSS_COMPILE_TARGET)/include/dlfcn.h ))
> ifneq ($(dhfcn_inc),)
> CFLAGS+=-I# how do I trim?
> OBJS+=dhfcn.o
> endif
>
> Or add it always (if it is required anyway).
The problem is that there isn't an object called dhfcn.o, so the make
fails...
--
Kristian Kielhofner
More information about the asterisk-dev
mailing list