Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
07e941d3
Commit
07e941d3
authored
Aug 26, 1999
by
Phil Blundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability/cross-compile fixes from Chris G. Demetriou
parent
9c98affb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
10 deletions
+23
-10
Makefile
Makefile
+10
-6
configure.sh
configure.sh
+11
-3
lib/Makefile
lib/Makefile
+1
-1
slattach.c
slattach.c
+1
-0
No files found.
Makefile
View file @
07e941d3
...
...
@@ -86,7 +86,9 @@ endif
# Compiler and Linker Options
# You may need to uncomment and edit these if you are using libc5 and IPv6.
COPTS
=
-D_GNU_SOURCE
-O2
-Wall
-g
# -I/usr/inet6/include
ifeq
($(origin LOPTS), undefined)
LOPTS
=
endif
RESLIB
=
# -L/usr/inet6/lib -linet6
ifeq
($(HAVE_AFDECnet),1)
...
...
@@ -113,8 +115,10 @@ LDFLAGS = $(LOPTS) -L$(NET_LIB_PATH)
SUBDIRS
=
man/
$(NET_LIB_PATH)
/
ifeq
($(origin CC), undefined)
CC
=
gcc
LD
=
gcc
endif
LD
=
$(CC)
NLIB
=
-l
$(NET_LIB_NAME)
...
...
@@ -136,15 +140,15 @@ mostlyclean:
clean
:
mostlyclean
rm
-f
$(PROGS)
@
for
i
in
$(SUBDIRS)
;
do
(
cd
$$
i
&&
make
clean
)
;
done
@
cd
po
&&
make
clean
@
for
i
in
$(SUBDIRS)
;
do
(
cd
$$
i
&&
$(MAKE)
clean
)
;
done
@
cd
po
&&
$(MAKE)
clean
cleanconfig
:
rm
-f
config.h
clobber
:
clean
rm
-f
$(PROGS)
config.h version.h config.status
@
for
i
in
$(SUBDIRS)
;
do
(
cd
$$
i
&&
make
clobber
)
;
done
@
for
i
in
$(SUBDIRS)
;
do
(
cd
$$
i
&&
$(MAKE)
clobber
)
;
done
dist
:
clobber
...
...
@@ -155,8 +159,8 @@ dist: clobber
config.h
:
config.in Makefile
@
echo
"Configuring the Linux net-tools (NET-3 Base Utilities)..."
;
echo
@
if
[
config.status
-nt
config.in
]
;
\
then
./configure.sh
<
config.status
;
\
else
./configure.sh
<
config.in
;
\
then
./configure.sh config.status
;
\
else
./configure.sh config.in
;
\
fi
...
...
configure.sh
View file @
07e941d3
#!/
bin/
bash
#!/
usr/bin/env
bash
#
# Configure.sh Generates interactively a config.h from config.in
#
...
...
@@ -43,6 +43,14 @@ MAKECONFIG=config.make
# Enable function cacheing.
set
-f
-h
# set up reading of config file
if
[
"$#"
!=
"1"
]
||
[
!
-f
"
$1
"
]
;
then
echo
"usage:
$0
configfile"
1>&2
exit
1
fi
exec
7<
$1
config_fd_redir
=
'<&7'
#
# readln reads a line into $ans.
#
...
...
@@ -51,7 +59,7 @@ set -f -h
function
readln
()
{
echo
-n
"
$1
"
IFS
=
'@'
read
ans
</dev/tty
||
exit
1
IFS
=
'@'
read
ans
||
exit
1
[
-z
"
$ans
"
]
&&
ans
=
$2
}
...
...
@@ -107,7 +115,7 @@ function int()
stack
=
''
branch
=
't'
while
IFS
=
'@'
read
raw_input_line
while
IFS
=
'@'
eval read
raw_input_line
${
config_fd_redir
}
do
# Slimy hack to get bash to rescan a line.
read
cmd rest
<<-
END_OF_COMMAND
...
...
lib/Makefile
View file @
07e941d3
...
...
@@ -39,7 +39,7 @@ all: lib$(NET_LIB_NAME).a # lib$(NET_LIB_NAME).so
lib$(NET_LIB_NAME).a
:
Makefile $(TOPDIR)/config.h $(OBJS)
@
echo
Building
$@
@
rm
-f
$@
@
ar
rcs
$@
$(OBJS)
@
$(AR)
rcs
$@
$(OBJS)
.a.so
:
;
$(CC)
-o
$@
-shared
-Wl
,--whole-archive
-Wl
,--soname
-Wl
,
$(SONAME)
-nostdlib
-nostartfiles
$<
...
...
slattach.c
View file @
07e941d3
...
...
@@ -28,6 +28,7 @@
* Foundation; either version 2 of the License, or (at
* your option) any later version.
*/
#include <sys/param.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment