The Samba-Bugzilla – Bug 552
AR variable undefined in Makefile
Last modified: 2005-08-24 10:17:26 UTC
When configure is run (platform is HP-UX 11.o using HP AnsiC compilers), the
Makefile that is generated does not include a value for the variable "AR," which
is later used in this chunk of code.
@echo Linking libsmbclient non-shared library $@
@-$(AR) -rc $@ $(LIBSMBCLIENT_PICOBJS)
...producing the error "-rc: not found" or equivalent.
Also in this block:
@-$(AR) -rc $@ $(LIBMSRPC_PICOBJ)
I suspect AR is automatically defined in GNU Make, but not in HPUX Make.
I've applied a fix to configure.in and Makefile.in. There may be more fixed
required if there are systems who have an archiver that isn't called 'ar'.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.