~ubuntu-branches/ubuntu/precise/postgresql-9.1/precise-security

« back to all changes in this revision

Viewing changes to src/makefiles/Makefile.linux

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AROPT = crs
 
2
export_dynamic = -Wl,-E
 
3
# Use --enable-new-dtags to generate DT_RUNPATH instead of DT_RPATH.
 
4
# This allows LD_LIBRARY_PATH to still work when needed.
 
5
rpath = -Wl,-rpath,'$(rpathdir)',--enable-new-dtags
 
6
allow_nonpic_in_shlib = yes
 
7
DLSUFFIX = .so
 
8
 
 
9
ifeq "$(findstring sparc,$(host_cpu))" "sparc"
 
10
CFLAGS_SL = -fPIC
 
11
else
 
12
CFLAGS_SL = -fpic
 
13
endif
 
14
 
 
15
# Rule for building a shared library from a single .o file
 
16
%.so: %.o
 
17
        $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<