зеркало из https://github.com/mozilla/pjs.git
Resurrected tweak_nspr kludge for --enable-nspr
This commit is contained in:
Родитель
fa185d94e6
Коммит
081a25e0c8
|
@ -258,9 +258,6 @@ endif
|
|||
|
||||
all:: export libs install
|
||||
|
||||
ifdef USE_AUTOCONF
|
||||
tweak_nspr:
|
||||
else
|
||||
#
|
||||
# Maybe this should be done in config/Makefile so it only happens once...?
|
||||
#
|
||||
|
@ -272,6 +269,14 @@ TARGETS += tweak_nspr
|
|||
# Since the NSPR folks won't help, we'll fix things the sneaky way.
|
||||
#
|
||||
tweak_nspr:
|
||||
ifdef USE_AUTOCONF
|
||||
ifdef NSPR_AUTOCONF
|
||||
@(cp $(topsrcdir)/nsprpub/config/UNIX.mk $(DEPTH)/nsprpub/config/UNIX.mk.orig; \
|
||||
cd $(DEPTH)/nsprpub/config; \
|
||||
awk '/^OBJDIR_NAME[ ]*=/ { \
|
||||
printf("OBJDIR_NAME\t= %s%s%s%s%s%s.OBJ\n","$(OS_CONFIG)","$(OS_VERSION)","$(PROCESSOR_ARCHITECTURE)","$(COMPILER)","$(IMPL_STRATEGY)","$(OBJDIR_TAG)"); next} {print}' UNIX.mk.orig > UNIX.mk)
|
||||
endif # NSPR_AUTOCONF
|
||||
else
|
||||
@(cd $(DEPTH)/nsprpub/config; \
|
||||
if test -f UNIX.mk.orig; then rm -f UNIX.mk; mv UNIX.mk.orig UNIX.mk; fi; \
|
||||
mv UNIX.mk UNIX.mk.orig; \
|
||||
|
|
Загрузка…
Ссылка в новой задаче