allow openssl to compile with ccache enabled (#4518)
[openwrt/openwrt.git] / package / openssl / patches / 169-makefile-ccache_needs_quotes.patch
1 --- openssl-0.9.8k/Makefile.org 2009-04-06 13:52:21.000000000 +0200
2 +++ openssl-0.9.8k.patched/Makefile.org 2009-04-06 13:54:04.000000000 +0200
3 @@ -357,7 +357,7 @@
4 $(AR) libcrypto.a fips/fipscanister.o ; \
5 else \
6 if [ "$(FIPSCANLIB)" = "libcrypto" ]; then \
7 - FIPSLD_CC=$(CC); CC=fips/fipsld; \
8 + FIPSLD_CC="$(CC)"; CC=fips/fipsld; \
9 export CC FIPSLD_CC; \
10 fi; \
11 $(MAKE) -e SHLIBDIRS='crypto' build-shared; \
12 @@ -380,7 +380,7 @@
13 fips/fipscanister.o: build_fips
14 libfips$(SHLIB_EXT): fips/fipscanister.o
15 @if [ "$(SHLIB_TARGET)" != "" ]; then \
16 - FIPSLD_CC=$(CC); CC=fips/fipsld; export CC FIPSLD_CC; \
17 + FIPSLD_CC="$(CC)"; CC=fips/fipsld; export CC FIPSLD_CC; \
18 $(MAKE) -f Makefile.shared -e $(BUILDENV) \
19 CC=$${CC} LIBNAME=fips THIS=$@ \
20 LIBEXTRAS=fips/fipscanister.o \
21 --- openssl-0.9.8k/apps/Makefile 2009-04-06 22:07:06.000000000 +0200
22 +++ openssl-0.9.8k.patched/apps/Makefile 2009-04-06 22:12:39.000000000 +0200
23 @@ -153,7 +153,7 @@
24 shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
25 shlib_target="$(SHLIB_TARGET)"; \
26 elif [ -n "$(FIPSCANLIB)" ]; then \
27 - FIPSLD_CC=$(CC); CC=$(TOP)/fips/fipsld; export CC FIPSLD_CC; \
28 + FIPSLD_CC="$(CC)"; CC=$(TOP)/fips/fipsld; export CC FIPSLD_CC; \
29 fi; \
30 LIBRARIES="$(LIBSSL) $(LIBKRB5) $(LIBCRYPTO)" ; \
31 [ "x$(FIPSCANLIB)" = "xlibfips" ] && LIBRARIES="$$LIBRARIES -lfips"; \
32 @@ -158,7 +158,7 @@
33 LIBRARIES="$(LIBSSL) $(LIBKRB5) $(LIBCRYPTO)" ; \
34 [ "x$(FIPSCANLIB)" = "xlibfips" ] && LIBRARIES="$$LIBRARIES -lfips"; \
35 $(MAKE) -f $(TOP)/Makefile.shared -e \
36 - CC=$${CC} APPNAME=$(EXE) OBJECTS="$(PROGRAM).o $(E_OBJ)" \
37 + CC="$${CC}" APPNAME=$(EXE) OBJECTS="$(PROGRAM).o $(E_OBJ)" \
38 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
39 link_app.$${shlib_target}
40 -(cd ..; \