#3271: Udev/Systemd 197
--------------------+-------------------------------------------------------
 Reporter:  Krejzi  |       Owner:  bdubbs@…                   
     Type:  task    |      Status:  assigned                   
 Priority:  normal  |   Milestone:  7.3                        
Component:  Book    |     Version:  SVN                        
 Severity:  normal  |    Keywords:                             
--------------------+-------------------------------------------------------

Comment(by bdubbs@…):

 This is a hack, but it seems to work for me.  In Makefile.lfs:

 {{{
 SECURE = $(shell if nm /lib/libc.so.6 | grep -q " secure_getenv"; \
          then echo yes; fi)

 ifeq "$(SECURE)" "yes"
   SECURE_GETENV = SECURE_GETENV
 else
   SECURE_GETENV = __SECURE_GETENV
 endif

 ...

 cfg.h: udev-lfs-$(VERSION)/cfg.h
    sed  -e 's/LFS-VERSION/$(SYSTEMD_VERSION)/' \
         -e 's/SECURE_GETENV/$(SECURE_GETENV)/' \
         udev-lfs-$(VERSION)/cfg.h > ./cfg.h
 }}}

 Of course udev-lfs-$VERSION/cfg.h has:

 #define HAVE_SECURE_GETENV 1

 so the define is either unchanged or HAVE!___SECURE_GETENV

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/3271#comment:10>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to