patch-library_Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --- polarssl-1.2.8.orig/library/Makefile 2013-06-21 15:11:10.000000000 +0200
  2. +++ polarssl-1.2.8/library/Makefile 2013-08-20 18:32:08.885495858 +0200
  3. @@ -18,9 +18,7 @@ endif
  4. # CFLAGS += -D_BSD_EXTENSION
  5. # To compile as a shared library:
  6. -ifdef SHARED
  7. CFLAGS += -fPIC
  8. -endif
  9. SONAME=libpolarssl.so.0
  10. @@ -51,27 +49,19 @@ OBJS= aes.o arc4.o asn1parse.o \
  11. ssl_tls.o timing.o version.o \
  12. x509parse.o x509write.o xtea.o
  13. -.SILENT:
  14. -
  15. -ifndef SHARED
  16. -all: static
  17. -else
  18. -all: shared
  19. -endif
  20. +all: static shared
  21. static: libpolarssl.a
  22. shared: libpolarssl.$(DLEXT)
  23. libpolarssl.a: $(OBJS)
  24. - echo " AR $@"
  25. $(AR) r $@ $(OBJS)
  26. - echo " RL $@"
  27. $(AR) s $@
  28. libpolarssl.so: libpolarssl.a
  29. - echo " LD $@"
  30. $(CC) ${LDFLAGS} -shared -Wl,-soname,$(SONAME) -o $@ $(OBJS)
  31. + ln -sf $@ $(SONAME)
  32. libpolarssl.dylib: libpolarssl.a
  33. echo " LD $@"
  34. @@ -82,7 +72,6 @@ libpolarssl.dll: libpolarssl.a
  35. $(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS) -lws2_32 -lwinmm -lgdi32
  36. .c.o:
  37. - echo " CC $<"
  38. $(CC) $(CFLAGS) $(OFLAGS) -c $<
  39. clean: