~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-updates

« back to all changes in this revision

Viewing changes to src/makefiles/Makefile.unixware

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AROPT = crs
 
2
ifeq ($(with_gnu_ld), yes)
 
3
    export_dynamic = -Wl,-E
 
4
else
 
5
    export_dynamic = -Wl,-Bexport
 
6
endif
 
7
 
 
8
ifeq ($(ld_R_works), yes)
 
9
ifeq ($(with_gnu_ld), yes)
 
10
    rpath = -Wl,-rpath,'$(rpathdir)'
 
11
else
 
12
    rpath = -Wl,-R'$(rpathdir)'
 
13
endif
 
14
endif
 
15
 
 
16
DLSUFFIX = .so
 
17
ifeq ($(GCC), yes)
 
18
CFLAGS_SL = -fpic
 
19
else
 
20
CFLAGS_SL = -K PIC
 
21
endif
 
22
ifeq ($(GCC), yes)
 
23
SO_FLAGS = -shared
 
24
else
 
25
SO_FLAGS = -G
 
26
endif
 
27
 
 
28
%.so: %.o
 
29
        $(CC) $(SO_FLAGS) -o $@ $<
 
30
 
 
31
sqlmansect = 5sql
 
32
 
 
33
# Unixware needs threads for everything that uses libpq
 
34
CFLAGS += $(PTHREAD_CFLAGS)