bison: liby.so.1 needs -znodefs
[unleashed-userland.git] / components / developer / bison / patches / shared-ly.patch
blob30f3b6937a871d8d520c42b14685e79d9e94020d
1 --- bison-3.0.4/Makefile.in.orig Tue Oct 27 10:12:31 2015
2 +++ bison-3.0.4/Makefile.in Tue Oct 27 10:13:12 2015
3 @@ -473,6 +473,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 @FLEX_CXX_WORKS_TRUE@am__EXEEXT_1 = examples/calc++/calc++$(EXEEXT)
14 PROGRAMS = $(bin_PROGRAMS)
15 am__objects_2 = examples/calc++/examples_calc___calc__-calc++-driver.$(OBJEXT) \
16 @@ -2501,6 +2507,9 @@
17 @ENABLE_YACC_TRUE@EXTRA_LIBRARIES = lib/liby.a
18 @ENABLE_YACC_TRUE@lib_liby_a_SOURCES = lib/main.c lib/yyerror.c
19 LDADD = lib/libbison.a $(LIBINTL)
21 +lib_LIBRARIES += lib/liby.so.1
23 # Prettify Automake-computed names of compiled objects.
24 src_bison_SHORTNAME = bison
25 src_bison_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS)
26 @@ -2624,6 +2633,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 -Wl,-znodefs -o lib/liby.so.1 $(lib_liby_a_OBJECTS) $(lib_liby_a_LIBADD)
34 .SUFFIXES:
35 .SUFFIXES: .gv .eps .pdf .png .yy .stamp .c .cc .dvi .l .ll .log .o .obj .ps .sed .sin .test .test$(EXEEXT) .trs .y
36 am--refresh: Makefile