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

Michael S. Tsirkin mst at mellanox.co.il
Thu Feb 22 04:40:12 PST 2007


> Quoting Jack Morgenstein <jackm at dev.mellanox.co.il>:
> Subject: libibverbs: can't compile more than once due to man3 symbolic links
> 
> 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)?

Probably just add
	$(RM) ibv_ack_async_event.3 && \

-- 
MST




More information about the general mailing list