libppd: update to 2.1.0
[oi-userland.git] / components / developer / bison-3.7 / patches / 01-shared-ly.patch
blobeed349e5ca0d160c39cb0baa02a206d2a4de6089
1 --- bison-3.7/Makefile.in.orig 2020-07-24 10:39:34.580098670 +0000
2 +++ bison-3.7/Makefile.in 2020-07-24 10:43:04.145242328 +0000
3 @@ -608,6 +608,12 @@
4 @ENABLE_YACC_TRUE@am_lib_liby_a_OBJECTS = lib/main.$(OBJEXT) \
5 @ENABLE_YACC_TRUE@ lib/yyerror.$(OBJEXT)
6 lib_liby_a_OBJECTS = $(am_lib_liby_a_OBJECTS)
8 +#doing this for just the OBJECTS macros doesn't seeem to work
9 +#and we rely on the approprate xregs/no-app-regs flag already
10 +# being in our CFLAGS from shared-macros.mk
11 +lib/yyerror.o lib/main.o: CFLAGS += $(CC_PIC)
13 am__objects_9 = examples/c++/calc++/calc__-driver.$(OBJEXT) \
14 examples/c++/calc++/calc__-scanner.$(OBJEXT) \
15 examples/c++/calc++/calc__-calc++.$(OBJEXT)
16 @@ -3318,6 +3324,9 @@
17 @ENABLE_YACC_TRUE@lib_LIBRARIES = lib/liby.a
18 @ENABLE_YACC_TRUE@EXTRA_LIBRARIES = lib/liby.a
19 @ENABLE_YACC_TRUE@lib_liby_a_SOURCES = lib/main.c lib/yyerror.c
21 +lib_LIBRARIES += lib/liby.so.1
23 # Prettify Automake-computed names of compiled objects.
24 src_bison_SHORTNAME = bison
25 src_bison_CPPFLAGS = $(AM_CPPFLAGS) -DINSTALLDIR=\"$(bindir)\"
26 @@ -3486,6 +3495,10 @@
27 all: $(BUILT_SOURCES)
28 $(MAKE) $(AM_MAKEFLAGS) all-recursive
30 +lib/liby.so.1: $(lib_liby_a_OBJECTS) $(lib_liby_a_DEPENDENCIES)
31 + -rm -f lib/liby.so.1
32 + $(CC) $(CFLAGS) -shared -Wl,-h -Wl,liby.so.1 -o lib/liby.so.1 $(lib_liby_a_OBJECTS) $(lib_liby_a_LIBADD)
34 .SUFFIXES:
35 .SUFFIXES: .gv .eps .pdf .svg .yy .stamp .c .cc .dvi .i .l .ll .log .o .obj .ps .test .test$(EXEEXT) .trs .y
36 am--refresh: Makefile