summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.irix
blob: d087ba83ff372e04bf458472b037770b66ebcbfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
AROPT = crs
rpath = -Wl,-rpath,'$(rpathdir)'

DLSUFFIX = .so
# PIC is default
CFLAGS_SL =

override CPPFLAGS += -U_NO_XOPEN4

ifneq ($(GCC), yes)
  CFLAGS += -woff 1164,1171,1185,1195,1552
endif
LDFLAGS += -Wl,-woff,15 -Wl,-woff,84

# Rule for building a shared library from a single .o file
%.so: %.o
	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<

sqlmansect = 5sql