Skip to content

Commit

Permalink
* Compile native only on Darwin or Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
yoogx committed Nov 8, 2020
1 parent 2daf66d commit 07c6195
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions share/make/Makefile.common.in
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,14 @@ endif

ifeq ($(TARGET), $(filter $(TARGET), native bench linux32 linux64 linux_dll))
EXE=$(BINARY)$(EXEEXT)
$(BINARY): generate-asn1-deployment target-objects compile-c-files compile-cpp-files compile-ada-files compile-po-hi $(USER_OBJS) $(GENERATED_OBJS) $(TARGET_OBJECTS)
$(LD) -o $(EXE) $(EXTERNAL_OBJECTS) $(PO_HI_OBJS) $(PO_HI_CPPOBJS) $(GENERATED_OBJS) $(USER_OBJS) $(LDFLAGS)
$(BINARY):
if [ x"$(shell uname -s)" = x"Linux" ] || [ x"$(shell uname -s)" = x"Darwin" ]; then \
$(MAKE) generate-asn1-deployment target-objects compile-c-files compile-cpp-files compile-ada-files compile-po-hi $(USER_OBJS) $(GENERATED_OBJS) $(TARGET_OBJECTS); \
$(LD) -o $(EXE) $(EXTERNAL_OBJECTS) $(PO_HI_OBJS) $(PO_HI_CPPOBJS) $(GENERATED_OBJS) $(USER_OBJS) $(LDFLAGS) ; \
else \
echo "Platform $(shell uname -s) not supported, exiting" ; \
fi

endif

ifeq ($(TARGET), $(filter $(TARGET), win32))
Expand Down

0 comments on commit 07c6195

Please sign in to comment.