Subversion Repositories prayer

Compare Revisions

Ignore whitespace Rev 106 → Rev 107

/trunk/debian/patches/template_sdk.patch
88,13 → 88,14
+print "$name$suffix.so:", "_template_index$suffix.o", map {"$_.o"} @all;
--- /dev/null
+++ b/templates/src/template-set.make.in
@@ -0,0 +1,66 @@
@@ -0,0 +1,67 @@
+ifndef NAME
+NAME := $(notdir $(CURDIR))
+endif
+
+CPPFLAGS = -I/usr/include/prayer
+LDFLAGS_TEMPLATELIB = -shared \
+CFLAGS += -fPIC
+LDFLAGS_TEMPLATELIB = -shared -fPIC \
+ -Wl,--defsym=template_map=template_map_$(NAME) \
+ -Wl,--defsym=template_map_count=template_map_$(NAME)_count
+
/trunk/debian/patches/dlopen_templates.patch
44,10 → 44,14
+struct template_map_index *dlopen_templates(const char *set, const char *suffix);
--- a/templates/cam/Makefile
+++ b/templates/cam/Makefile
@@ -8,10 +8,14 @@ endif
@@ -6,12 +6,16 @@ else
include ../../Config
endif
CFLAGS = $(BASECFLAGS)
LDFLAGS = $(BASELDFLAGS)
-CFLAGS = $(BASECFLAGS)
-LDFLAGS = $(BASELDFLAGS)
+CFLAGS = $(BASECFLAGS) -fPIC
+LDFLAGS = $(BASELDFLAGS) -fPIC
+LDFLAGS_TEMPLATELIB = \
+ -Wl,--defsym=template_map=template_map_$(TYPE) \
+ -Wl,--defsym=template_map_count=template_map_$(TYPE)_count
86,10 → 90,14
--- a/templates/old/Makefile
+++ b/templates/old/Makefile
@@ -8,10 +8,14 @@ endif
@@ -6,12 +6,16 @@ else
include ../../Config
endif
CFLAGS = $(BASECFLAGS)
LDFLAGS = $(BASELDFLAGS)
-CFLAGS = $(BASECFLAGS)
-LDFLAGS = $(BASELDFLAGS)
+CFLAGS = $(BASECFLAGS) -fPIC
+LDFLAGS = $(BASELDFLAGS) -fPIC
+LDFLAGS_TEMPLATELIB = \
+ -Wl,--defsym=template_map=template_map_$(TYPE) \
+ -Wl,--defsym=template_map_count=template_map_$(TYPE)_count