Ticket #32034: macos-dylib.patch

File macos-dylib.patch, 1.7 KB (added by jfgobin (Jean-François Gobin), 13 years ago)

Patch to run during patch phase

  • src/dynamic-plugins/sf_engine/Makefile.in

    diff -rupN snort-2.9.0.5/src/dynamic-plugins/sf_engine/Makefile.in snort-2.9.0.5-mod/src/dynamic-plugins/sf_engine/Makefile.in
    old new libsf_engine_la_OBJECTS = $(am_libsf_eng 
    8181libsf_engine_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
    8282        $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
    8383        $(libsf_engine_la_LDFLAGS) $(LDFLAGS) -o $@
     84libsf_engine_dylib_OBJECTS = bmh.o sf_snort_detection_engine.o \
     85        sf_snort_plugin_api.o sf_snort_plugin_byte.o \
     86        sf_snort_plugin_content.o sf_snort_plugin_hdropts.o \
     87        sf_snort_plugin_loop.o sf_snort_plugin_pcre.o \
     88        sf_snort_plugin_rc4.o sfhashfcn.lo sfghash.o \
     89        sfprimetable.lo sf_ip.o
     90libsf_engine_dylib_LINK = $(CC) -dynamiclib -dylib -o $@
    8491DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
    8592depcomp =
    8693am__depfiles_maybe =
    top_build_prefix = @top_build_prefix@ 
    263270top_builddir = @top_builddir@
    264271top_srcdir = @top_srcdir@
    265272AUTOMAKE_OPTIONS = foreign no-dependencies
    266 lib_LTLIBRARIES = libsf_engine.la
     273lib_LTLIBRARIES = libsf_engine.la libsf_engine.dylib
    267274libsf_engine_la_LDFLAGS = -shared -export-dynamic -module @XCCFLAGS@
    268275BUILT_SOURCES = \
    269276sfhashfcn.c \
    clean-libLTLIBRARIES: 
    451458        done
    452459libsf_engine.la: $(libsf_engine_la_OBJECTS) $(libsf_engine_la_DEPENDENCIES)
    453460        $(libsf_engine_la_LINK) -rpath $(libdir) $(libsf_engine_la_OBJECTS) $(libsf_engine_la_LIBADD) $(LIBS)
     461libsf_engine.dylib: $(libsf_engine_dylib_OBJECTS)
     462        $(libsf_engine_dylib_LINK) $(libsf_engine_la_OBJECTS) 
    454463
    455464mostlyclean-compile:
    456465        -rm -f *.$(OBJEXT)