Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 305029 Details for
Bug 379849
sys-process/numactl-2.0.7 : add USE=static-libs support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Build static libs without -fPIC and only if BUILD_STATIC=yes
numactl-2.0.7-static_libs.patch (text/plain), 2.46 KB, created by
Kacper Kowalik (Xarthisius) (RETIRED)
on 2012-03-12 20:30:27 UTC
(
hide
)
Description:
Build static libs without -fPIC and only if BUILD_STATIC=yes
Filename:
MIME Type:
Creator:
Kacper Kowalik (Xarthisius) (RETIRED)
Created:
2012-03-12 20:30:27 UTC
Size:
2.46 KB
patch
obsolete
>Build static libs without -fPIC and only if BUILD_STATIC=yes > >https://bugs.gentoo.org/show_bug.cgi?id=379849 > >Patch written by Kacper Kowalik <xarthisius@gentoo.org> >--- a/Makefile >+++ b/Makefile >@@ -24,6 +24,7 @@ > > CLEANFILES := numactl.o libnuma.o numactl numademo numademo.o distance.o \ > memhog libnuma.so libnuma.so.1 numamon numamon.o syscall.o bitops.o \ >+ distance.o_PIC libnuma.o_PIC syscall.o_PIC \ > memhog.o util.o stream_main.o stream_lib.o shm.o stream clearcache.o \ > test/pagesize test/tshared test/mynode.o test/tshared.o mt.o empty.o empty.c \ > test/mynode test/ftok test/prefered test/randmap \ >@@ -40,10 +41,18 @@ > libdir := ${prefix}/$(shell ./getlibdir) > docdir := ${prefix}/share/doc > >-all: numactl migratepages migspeed libnuma.so numademo numamon memhog \ >+NUMA_LIBS = libnuma.so >+ifeq ($(BUILD_STATIC),yes) >+NUMA_LIBS+= libnuma.a >+endif >+ >+all: numactl migratepages migspeed numademo numamon memhog \ > test/tshared stream test/mynode test/pagesize test/ftok test/prefered \ > test/randmap test/nodemap test/distance test/tbitmap test/move_pages \ >- test/mbind_mig_pages test/migrate_pages test/realloc_test libnuma.a >+ test/mbind_mig_pages test/migrate_pages test/realloc_test ${NUMA_LIBS} >+ >+%.o_PIC: %.c >+ ${CC} -fPIC ${CPPFLAGS} ${CFLAGS} -c $< -o $@ > > numactl: numactl.o util.o shm.o bitops.o libnuma.so > >@@ -81,23 +90,18 @@ > > libnuma.so.1: versions.ldscript > >-libnuma.so.1: libnuma.o syscall.o distance.o >+libnuma.so.1: libnuma.o_PIC syscall.o_PIC distance.o_PIC > ${CC} ${LDFLAGS} -shared -Wl,-soname=libnuma.so.1 -Wl,--version-script,versions.ldscript -Wl,-init,numa_init -Wl,-fini,numa_fini -o libnuma.so.1 $(filter-out versions.ldscript,$^) > > libnuma.so: libnuma.so.1 > ln -sf libnuma.so.1 libnuma.so > >-libnuma.o : CFLAGS += -fPIC >- > AR ?= ar > RANLIB ?= ranlib > libnuma.a: libnuma.o syscall.o distance.o > $(AR) rc $@ $^ > $(RANLIB) $@ > >-distance.o : CFLAGS += -fPIC >- >-syscall.o : CFLAGS += -fPIC > > test/tshared: test/tshared.o libnuma.so > >@@ -142,8 +146,10 @@ > ( cd ${prefix}/share/man/man3 ; for i in $$(./manlinks) ; do ln -sf numa.3 $$i.3 ; done ) > mkdir -p ${libdir} > install -m 0755 libnuma.so.1 ${libdir} >- cd ${libdir} ; ln -sf libnuma.so.1 libnuma.so >+ cd ${libdir} ; ln -sf libnuma.so.1 libnuma.so >+ifeq ($(BUILD_STATIC),yes) > install -m 0644 libnuma.a ${libdir} >+endif > mkdir -p ${prefix}/include > install -m 0644 numa.h numaif.h numacompat1.h ${prefix}/include > install -m 0755 numastat ${prefix}/bin
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 379849
:
305029
|
305031
|
306357
|
306359