Hello All I was wondering how i can add -ldl while using dlopen.buildlink when needed. My understanding is, we need to add : BUILDLINK_LDADD.dl (of dlopen.builtin) to dlopen.buildlink3.mk file. And it should look something like:
DL_LDADD= ${BUILDLINK_LDADD.dl}
CONFIGURE_ENV+= DL_LDADD=${DL_LDADD:Q}
MAKE_ENV+= DL_LDADD=${DL_LDADD:Q}
Any thought on that? Or any other way to implement that?
I tried and was successful in this way.
Thanks
Amil
|