Skip to content
This repository has been archived by the owner on Jan 20, 2019. It is now read-only.

Commit

Permalink
Fixed to work with new cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
rhencke committed Dec 19, 2010
1 parent e141b6e commit 787b8c7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Makefile
Expand Up @@ -10,13 +10,12 @@ CGOFILES:=glut.go

PLATFORM:=$(shell uname -s)

CGO_DEPS:=_cgo_export.o
CGO_CFLAGS:=-D__$(PLATFORM)

ifeq ($(PLATFORM),Darwin)
CGO_LDFLAGS:= _cgo_export.o -framework GLUT
CGO_CFLAGS:=-D__Darwin
CGO_LDFLAGS:=-framework GLUT
else
CGO_LDFLAGS:=-lglut _cgo_export.o
CGO_CFLAGS:=-D__$(PLATFORM)
CGO_LDFLAGS:=-lglut
endif

include $(GOROOT)/src/Make.pkg

0 comments on commit 787b8c7

Please sign in to comment.