[openib-general] libibverbs: can't compile more than once due to man3 symbolic links

Jack Morgenstein jackm at dev.mellanox.co.il
Thu Feb 22 04:32:00 PST 2007


The code below was just added to libibverbs/Makefile.am

install-data-hook:
        cd $(DESTDIR)$(mandir)/man3 && \
        $(LN_S) ibv_get_async_event.3 ibv_ack_async_event.3 && \
	....

This creates a problem when re-compiling/re-installing libibverbs --
the "ln -s" ( = $(LN_S) ) fails because the symbolic links still exist
in the man/man3 directory.

I rummaged around the libtool documentation, and there is no pre-defined
macro which does "ln -fs" (which would just overwrite the current links).

Any ideas on how to fix this problem cleanly (i.e., without violating spirit
of libtool/automake)?

- Jack




More information about the general mailing list