mirror of
https://github.com/OpenRC/openrc.git
synced 2024-11-27 20:03:29 +08:00
Add BIN_LDFLAGS so that we can build static bins without affecting our shared libraries.
This commit is contained in:
parent
d8019881dd
commit
d7961bef66
1
README
1
README
@ -8,6 +8,7 @@ Yup, that simple. Works with GNU make, FreeBSD make and pmake. Should work
|
||||
with every other make too.
|
||||
|
||||
You may wish to tweak the installation with the below arguments
|
||||
BIN_LDFLAGS=-static
|
||||
LIB=lib64
|
||||
DESTDIR=/tmp/openrc-image
|
||||
PAM=pam
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 2007 Roy Marples
|
||||
# Copyright 2007-2008 Roy Marples
|
||||
|
||||
# We should strive to keep this Makefile working with the default make
|
||||
# shipped with the OS's we support. Mainly because I'm lazy and just want
|
||||
@ -129,7 +129,8 @@ $(LIBRCSO): rc.map $(LIBRCOBJS)
|
||||
$(RCOBJS):
|
||||
$(CC) $(CPPFLAGS) $(CPPFLAGS_SSD) $(CFLAGS) -c $<
|
||||
rc: version.h $(LIBEINFOSO) $(LIBRCSO) $(RCOBJS)
|
||||
$(CC) $(LDFLAGS) -o rc $(RCOBJS) $(LDLIBS) $(LDLIBS_RC) $(LDLIBS_LIBEINFO) $(LDLIBS_LIBRC)
|
||||
$(CC) $(LDFLAGS) $(BIN_LDFLAGS) -o rc \
|
||||
$(RCOBJS) $(LDLIBS) $(LDLIBS_RC) $(LDLIBS_LIBEINFO) $(LDLIBS_LIBRC)
|
||||
|
||||
$(ALL_LINKS): rc
|
||||
ln -sf rc $@
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright 2007 Roy Marples
|
||||
* Copyright 2007-2008 Roy Marples
|
||||
* All rights reserved
|
||||
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -29,7 +29,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
const char libeinfo_copyright[] = "Copyright (c) 2007 Roy Marples";
|
||||
const char libeinfo_copyright[] = "Copyright (c) 2007-2008 Roy Marples";
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright 2007 Roy Marples
|
||||
* Copyright 2007-2008 Roy Marples
|
||||
* All rights reserved
|
||||
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -29,7 +29,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
const char librc_copyright[] = "Copyright (c) 2007 Roy Marples";
|
||||
const char librc_copyright[] = "Copyright (c) 2007-2008 Roy Marples";
|
||||
|
||||
#include "librc.h"
|
||||
|
||||
|
4
src/rc.c
4
src/rc.c
@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright 2007 Roy Marples
|
||||
* Copyright 2007-2008 Roy Marples
|
||||
* All rights reserved
|
||||
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
const char rc_copyright[] = "Copyright (c) 2007 Roy Marples";
|
||||
const char rc_copyright[] = "Copyright (c) 2007-2008 Roy Marples";
|
||||
|
||||
#define SYSLOG_NAMES
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user