Skip to content

Commit a8bb7c8

Browse files
committed
Add Solaris support for tools.
1 parent 5afb1c3 commit a8bb7c8

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

tools/geohot/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ ifneq (,$(findstring BSD,$(UNAME)))
4545
LDFLAGS += -L/usr/local/lib -lgmp -lcrypto -lz
4646
endif
4747

48+
ifneq (,$(findstring SunOS,$(UNAME)))
49+
CFLAGS += -I/opt/csw/include
50+
LDFLAGS += -L/opt/csw/lib -R/opt/csw/lib -lgmp -lcrypto -lz
51+
endif
52+
4853
ifneq (,$(findstring Linux,$(UNAME)))
4954
LDFLAGS += -lgmp -lcrypto -lz
5055
OS := Linux

tools/ps3load/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ ifneq (,$(findstring Darwin,$(shell uname -s)))
4545
LDFLAGS += -mmacosx-version-min=10.4 -arch i386 -arch ppc -Wl,-syslibroot,$(SDK)
4646
endif
4747

48+
ifneq (,$(findstring SunOS,$(UNAME)))
49+
PLATFORM_LIBS := -lresolv -lsocket -lnsl
50+
endif
51+
4852
#---------------------------------------------------------------------------------
4953
# any extra libraries we wish to link with the project
5054
#---------------------------------------------------------------------------------

tools/sprxlinker/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ ifneq (,$(findstring BSD,$(UNAME)))
4040
LDFLAGS += -lelf
4141
endif
4242

43+
ifneq (,$(findstring SunOS,$(UNAME)))
44+
LDFLAGS += -lelf
45+
endif
46+
4347
ifneq (,$(findstring Linux,$(UNAME)))
4448
LDFLAGS += -lelf
4549
OS := Linux

0 commit comments

Comments
 (0)