bugzilla-daemon at main.slony.info bugzilla-daemon at main.slony.info
Mon Sep 24 19:38:46 PDT 2012
http://www.slony.info/bugzilla/show_bug.cgi?id=280

           Summary: shared library build should use CFLAGS and LDFLAGS
           Product: Slony-I
           Version: devel
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: low
         Component: stored procedures
        AssignedTo: slony1-bugs at lists.slony.info
        ReportedBy: peter_e at gmx.net
                CC: slony1-bugs at lists.slony.info
   Estimated Hours: 0.0


The current shared library build rule for Linux looks like this:

%.so: %.o
        $(CC) -shared -o $@ $<

Contrast this with the same rule in the PostgreSQL sources:

%.so: %.o
    $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<

This is better because then you can put some hardening flags like -Wl,-z,relro
in it.

Please consider updating this sometime.

-- 
Configure bugmail: http://www.slony.info/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Slony1-bugs mailing list