2000-10-22 00:36:14 +02:00
|
|
|
AROPT = crs
|
2002-04-05 14:01:59 +02:00
|
|
|
ifeq ($(with_gnu_ld), yes)
|
|
|
|
export_dynamic = -Wl,-E
|
|
|
|
else
|
|
|
|
export_dynamic = -Wl,-Bexport
|
|
|
|
endif
|
|
|
|
|
2000-11-09 19:18:42 +01:00
|
|
|
ifeq ($(ld_R_works), yes)
|
2002-04-05 14:01:59 +02:00
|
|
|
ifeq ($(with_gnu_ld), yes)
|
2004-11-19 01:41:39 +01:00
|
|
|
rpath = -Wl,-rpath,$(rpathdir)
|
2002-04-05 14:01:59 +02:00
|
|
|
else
|
2004-11-19 01:41:39 +01:00
|
|
|
rpath = -Wl,-R$(rpathdir)
|
2002-04-05 14:01:59 +02:00
|
|
|
endif
|
2000-11-08 21:27:38 +01:00
|
|
|
endif
|
2000-12-16 19:14:25 +01:00
|
|
|
|
2000-10-22 00:36:14 +02:00
|
|
|
DLSUFFIX = .so
|
2000-10-23 00:15:13 +02:00
|
|
|
ifeq ($(GCC), yes)
|
|
|
|
CFLAGS_SL = -fpic
|
|
|
|
else
|
2000-10-22 00:36:14 +02:00
|
|
|
CFLAGS_SL = -K PIC
|
2000-10-23 00:15:13 +02:00
|
|
|
endif
|
2001-09-06 05:15:43 +02:00
|
|
|
ifeq ($(GCC), yes)
|
|
|
|
SO_FLAGS = -shared
|
|
|
|
else
|
|
|
|
SO_FLAGS = -G
|
|
|
|
endif
|
1998-07-19 06:17:13 +02:00
|
|
|
|
|
|
|
%.so: %.o
|
2001-09-06 05:16:46 +02:00
|
|
|
$(CC) $(SO_FLAGS) -o $@ $<
|
2001-08-29 21:14:40 +02:00
|
|
|
|
|
|
|
sqlmansect = 5sql
|
2004-05-14 02:03:07 +02:00
|
|
|
|
|
|
|
# Unixware needs threads for everything that uses libpq
|
2004-05-14 02:10:52 +02:00
|
|
|
CFLAGS += $(PTHREAD_CFLAGS)
|