Makefile hackery for Neutrino to build vreg with CC instead of CCF

CCF includes (eventually) DSO_PIC_CFLAGS which has the option "-shared"
which is not allowed for Neutrino executables just object files and
libraries.
This commit is contained in:
Jerry.Kirk%Nexwarecorp.com 1999-09-10 12:06:28 +00:00
Родитель 37bfd8650d
Коммит 611fe885b0
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -27,7 +27,7 @@ LIBRARY_NAME = mozreg_s
REQUIRES = libreg pref js
CSRCS = reg.c VerReg.c vr_stubs.c mmapio.c
CSRCS = reg.c VerReg.c vr_stubs.c
BIN_SRCS = VerReg.c reg.c vr_stubs.c
BIN_OBJS = $(addprefix R_,$(BIN_SRCS:.c=.o))
@ -43,6 +43,7 @@ include $(topsrcdir)/config/rules.mk
# Memory mapped files are not supported under QNX and Neutrino
ifneq ($(OS_ARCH),QNX)
DEFINES += -DUSE_MMAP_REGISTRY_IO
CSRCS += mmapio.c
endif
# Override gtscc when building vreg on IRIX 5.3.
@ -63,10 +64,14 @@ ifeq ($(OS_ARCH), OS2)
else
ifeq ($(OS_ARCH), OSF1)
$(CC) -o $@ $(BIN_OBJS) $(LDFLAGS)
else
ifeq ($(OS_TARGET), NTO)
$(CC) -o $@ $(BIN_OBJS) $(LDFLAGS)
else
$(CCF) -o $@ $(BIN_OBJS) $(LDFLAGS)
endif
endif
endif
R_VerReg.o: VerReg.c
ifeq ($(OS_ARCH), OS2)