Skip to content

Commit

Permalink
contrib: add Solaris to bootstrap
Browse files Browse the repository at this point in the history
Signed-off-by: Rafaël Carré <[email protected]>
  • Loading branch information
SeanMcG authored and funman committed Mar 27, 2014
1 parent 5428d0e commit 591e83a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ case "${OS}" in
*mingw*)
add_make_enabled "HAVE_WIN32"
;;
*solaris*)
add_make_enabled "HAVE_SOLARIS"
;;
esac

#
Expand Down
10 changes: 10 additions & 0 deletions contrib/src/main.mak
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,16 @@ HAVE_MINGW_W64 := 1
endif
endif

ifdef HAVE_SOLARIS
ifeq ($(ARCH),x86_64)
EXTRA_CFLAGS += -m64
EXTRA_LDFLAGS += -m64
else
EXTRA_CFLAGS += -m32
EXTRA_LDFLAGS += -m32
endif
endif

cppcheck = $(shell $(CC) $(CFLAGS) -E -dM - < /dev/null | grep -E $(1))

EXTRA_CFLAGS += -I$(PREFIX)/include
Expand Down

0 comments on commit 591e83a

Please sign in to comment.