| # Copyright 2009 The Go Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style |
| # license that can be found in the LICENSE file. |
| install: $(GOROOT)/pkg/$(GOOS)_$(GOARCH)/libcgo.so |
| LDFLAGS_linux=-shared -lpthread -lm |
| LDFLAGS_darwin=-dynamiclib -Wl,-undefined,dynamic_lookup /usr/lib/libpthread.dylib |
| gcc $(CFLAGS_$(GOARCH)) -O2 -fPIC -o $@ -c $*.c |
| gcc $(CFLAGS_$(GOARCH)) -O2 -fPIC -o $@ -c $*.S |
| gcc $(CFLAGS_$(GOARCH)) $(LDFLAGS_$(GOOS)) -o libcgo.so $(OFILES) |
| $(GOROOT)/pkg/$(GOOS)_$(GOARCH)/libcgo.so: libcgo.so |