FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 08-03-2012, 07:08 PM
Ryan Finnie
 
Default Standardize *FLAGS in Makefile

* Use $(CPPFLAGS) everywhere
* Use $(LDFLAGS) on binaries and shared objects

This is to facilitate extra hardening flags in Debian packaging, but
the changes are universally compatible.

Signed-off-by: Ryan Finnie <ryan@finnie.org>
---
Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

--- isomd5sum-1.0.9.orig/Makefile
+++ isomd5sum-1.0.9/Makefile
@@ -21,20 +21,20 @@ PYOBJS = pyisomd5sum.o libcheckisomd5.a
all: implantisomd5 checkisomd5 pyisomd5sum.so libimplantisomd5.a libcheckisomd5.a

%.o: %.c
- $(CC) -c -O $(CFLAGS) -o $@ $<
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -O -o $@ $<

implantisomd5: implantisomd5.o libimplantisomd5.a
- $(CC) $(CFLAGS) implantisomd5.o libimplantisomd5.a -lpopt -o implantisomd5
+ $(CC) $(CPPFLAGS) $(CFLAGS) implantisomd5.o libimplantisomd5.a -lpopt $(LDFLAGS) -o implantisomd5

checkisomd5: checkisomd5.o libcheckisomd5.a
- $(CC) $(CFLAGS) checkisomd5.o libcheckisomd5.a -lpopt -o checkisomd5
+ $(CC) $(CPPFLAGS) $(CFLAGS) checkisomd5.o libcheckisomd5.a -lpopt $(LDFLAGS) -o checkisomd5

libimplantisomd5.a: libimplantisomd5.a(libimplantisomd5.o md5.o)

libcheckisomd5.a: libcheckisomd5.a(libcheckisomd5.o md5.o)

pyisomd5sum.so: $(PYOBJS)
- $(CC) -shared -g -o pyisomd5sum.so -fpic $(PYOBJS) $(LDFLAGS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) -shared -g -fpic $(PYOBJS) $(LDFLAGS) -o pyisomd5sum.so

install: all install-bin install-python install-devel


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 08-06-2012, 06:51 PM
Chris Lumens
 
Default Standardize *FLAGS in Makefile

> * Use $(CPPFLAGS) everywhere
> * Use $(LDFLAGS) on binaries and shared objects
>
> This is to facilitate extra hardening flags in Debian packaging, but
> the changes are universally compatible.
>
> Signed-off-by: Ryan Finnie <ryan@finnie.org>

Pushed, thanks. I'll leave the building of a new package up to its
owner, though.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 12:30 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org