2013-03-13 Yaakov Selkowitz * Makefile: Allow overriding of AR for cross-compiling. (install): Remove install -s flags. * crypt.def: Remove BASE directive to allow auto image base. Index: Makefile =================================================================== RCS file: /cvs/cygwin-apps/crypt/Makefile,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 Makefile --- Makefile 7 May 2012 11:00:13 -0000 1.1.1.1 +++ Makefile 13 Mar 2013 19:07:04 -0000 @@ -1,5 +1,6 @@ CC ?= gcc +AR ?= ar CFLAGS ?= -g -O2 prefix:=/usr @@ -23,7 +24,7 @@ crypt$(EXE): crypt.o $(LIBS) $(CC) -o $@ crypt.o -L. -lcrypt $(STATICLIB): encrypt.o - ar rv $@ encrypt.o + $(AR) rv $@ encrypt.o $(SHAREDLIB): encrypt.o $(CC) -shared -Wl,--gc-sections -Wl,--out-implib=$(IMPORTLIB) crypt.def \ @@ -41,10 +42,10 @@ install: all install -d $(DESTDIR)$(libdir) install -d $(DESTDIR)$(incdir) install -d $(DESTDIR)$(docdir) - install -m 755 -s $(APPS) $(DESTDIR)$(bindir) + install -m 755 $(APPS) $(DESTDIR)$(bindir) install -m 644 encrypt.h $(DESTDIR)$(incdir)/crypt.h install -m 644 $(STATICLIB) $(DESTDIR)$(libdir) install -m 644 $(IMPORTLIB) $(DESTDIR)$(libdir) - install -m 755 -s $(SHAREDLIB) $(DESTDIR)$(bindir) + install -m 755 $(SHAREDLIB) $(DESTDIR)$(bindir) install -m 644 crypt.README $(DESTDIR)$(docdir) Index: crypt.def =================================================================== RCS file: /cvs/cygwin-apps/crypt/crypt.def,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 crypt.def --- crypt.def 7 May 2012 11:00:13 -0000 1.1.1.1 +++ crypt.def 13 Mar 2013 19:07:04 -0000 @@ -1,4 +1,4 @@ -LIBRARY "cygcrypt-0.dll" BASE=0x44000000 +LIBRARY "cygcrypt-0.dll" EXPORTS encrypt