~ubuntu-branches/ubuntu/utopic/postgresql-9.4/utopic-security

« back to all changes in this revision

Viewing changes to src/Makefile.shlib

  • Committer: Package Import Robot
  • Author(s): Martin Pitt, CVE-2014-8161
  • Date: 2015-02-06 12:31:46 UTC
  • mfrom: (1.1.5) (7.1.2 utopic-proposed)
  • Revision ID: package-import@ubuntu.com-20150206123146-vtmf30jbkm7w16p8
Tags: 9.4.1-0ubuntu0.14.10
* New upstream security/bug fix release (LP: #1418928)
  - Fix buffer overruns in to_char() [CVE-2015-0241]
  - Fix buffer overruns in contrib/pgcrypto [CVE-2015-0243]
  - Fix possible loss of frontend/backend protocol synchronization after an
    error [CVE-2015-0244]
  - Fix information leak via constraint-violation error messages
    [CVE-2014-8161]
  - See release notes for details about other fixes:
    http://www.postgresql.org/about/news/1569/

Show diffs side-by-side

added added

removed removed

Lines of Context:
375
375
 
376
376
$(stlib): $(shlib) ;
377
377
 
 
378
# XXX A backend that loads a module linked with libgcc_s_dw2-1.dll will exit
 
379
# uncleanly, hence -static-libgcc.  (Last verified with MinGW-w64 compilers
 
380
# from i686-4.9.1-release-win32-dwarf-rt_v3-rev1.)  Shared libgcc has better
 
381
# support for C++/Java exceptions; while core PostgreSQL does not use them, it
 
382
# would be nice to support shared libgcc for the benefit of extensions.
 
383
#
378
384
# If SHLIB_EXPORTS is set, the rules below will build a .def file from that.
379
385
# Else we just use --export-all-symbols.
380
386
ifeq (,$(SHLIB_EXPORTS))
381
387
$(shlib): $(OBJS) | $(SHLIB_PREREQS)
382
 
        $(CC) $(CFLAGS)  -shared -o $@  $(OBJS) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) -Wl,--export-all-symbols -Wl,--out-implib=$(stlib)
 
388
        $(CC) $(CFLAGS)  -shared -static-libgcc -o $@  $(OBJS) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) -Wl,--export-all-symbols -Wl,--out-implib=$(stlib)
383
389
else
384
390
DLL_DEFFILE = lib$(NAME)dll.def
385
391
 
386
392
$(shlib): $(OBJS) $(DLL_DEFFILE) | $(SHLIB_PREREQS)
387
 
        $(CC) $(CFLAGS)  -shared -o $@  $(OBJS) $(DLL_DEFFILE) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) -Wl,--out-implib=$(stlib)
 
393
        $(CC) $(CFLAGS)  -shared -static-libgcc -o $@  $(OBJS) $(DLL_DEFFILE) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) -Wl,--out-implib=$(stlib)
388
394
endif
389
395
 
390
396
endif # PORTNAME == cgywin
421
427
 
422
428
lib$(NAME)dll.def: $(SHLIB_EXPORTS)
423
429
        echo '; DEF file for MS VC++' >$@
424
 
        echo 'LIBRARY LIB$(UC_NAME)' >>$@
 
430
        echo 'LIBRARY LIB$(UC_NAME).dll' >>$@
425
431
        echo 'EXPORTS' >>$@
426
432
        sed -e '/^#/d' -e 's/^\(.*[     ]\)\([0-9][0-9]*\)/    \1@ \2/' $< >>$@
427
433
 
428
434
lib$(NAME)ddll.def: $(SHLIB_EXPORTS)
429
435
        echo '; DEF file for MS VC++' >$@
430
 
        echo 'LIBRARY LIB$(UC_NAME)D' >>$@
 
436
        echo 'LIBRARY LIB$(UC_NAME)D.dll' >>$@
431
437
        echo 'EXPORTS' >>$@
432
438
        sed -e '/^#/d' -e 's/^\(.*[     ]\)\([0-9][0-9]*\)/    \1@ \2/' $< >>$@
433
439