> > > Signed-off-by: Masatake YAMATO <yam...@redhat.com>
> >
> > patch looks fine ... if Subrata doesnt merge it, i'll get around to it some
> > point this weekend
> 
> actually, i lie ... your patch was damaged by your e-mailer (it converted 
> long 
> lines).  can you fix that up ?
> -mike

Is this ok?
diff --git a/INSTALL b/INSTALL
index 3d4ca7f..1db4d19 100644
--- a/INSTALL
+++ b/INSTALL
@@ -129,3 +129,61 @@ contributions are welcome.
    You can run the test category which you are interested in, -h option shows
    the list of the test category:
    	# ./netwoktests.sh -h
+
+
+Cross compiling
+---------------
+
+To cross compile, override one or more of CC, AR, CROSS_CFLAGS,
+LOADLIBES, LDFLAGS, & LIB_DIR and be sure to always build from the top level.
+
+To override them from the make commandline, do something like this:
+$ CROSS_COMPILER=/opt/cegl-1.4/hardhat/devkit/ppc/405/bin/powerpc-linux-
+$ make \
+    CROSS_CFLAGS="-mcpu=403 -D__PPC405__" \
+    LDFLAGS=-static \
+    LOADLIBES="-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc"
+
+Alternately, to override them by editing this file, uncomment the 
+following lines:
+  CROSS_COMPILER=/opt/ppc64/powerpc64-linux/bin/powerpc64-linux-
+  CROSS_CFLAGS= -mpowerpc64
+  LDFLAGS=-static 
+  LOADLIBES=-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc
+  LIB_DIR=/lib64
+  export LOADLIBES LIB_DIR
+
+Or, you can save all your settings into the local 'config.mk' file.
+The defaults will not be usable in that case; you will need to
+override things explicitly.
+
+uClinux Users: make sure you add -DUCLINUX to your CFLAGS
+
+Note: If you override a variable from the commandline all
+assignments to it in the Makefiles will be ignored. To set it both 
+in the commandline and in the Makefiles use a dummy variable like in
+CFLAGS.
+
+Variables in Makefile
+----------------------
+
+The conventions enforced are the standard ones.  LTP isnt redefining any
+of the flags from their normal meaning.  here's a quick summary:
+
+CFLAGS   - used when compiling/linking C code (no CPPFLAGS!)
+
+CXXFLAGS - used when compiling/linking C++ code (no CPPFLAGS!)
+
+CPPFLAGS - used when preprocessor is run (so C/C++ compiling an $(CPP)
+           checks) 
+
+LDFLAGS  - linker flags (no libraries) used when linking
+
+LDLIBS   - libraries listed after objects during link
+
+Above list is ideal: Many codes in LTP violates above list especially
+about CPPFLAGS. e.g. -I and -D are passed to CFLAGS.
+
+Currently the violation isn't critical. However, it should be fixed.
+Patches are welcome.
+
diff --git a/Makefile b/Makefile
index 7fab4e8..a8c6075 100644
--- a/Makefile
+++ b/Makefile
@@ -1,33 +1,3 @@
-# To cross compile, override one or more of CC, AR, CROSS_CFLAGS,
-# LOADLIBES, LDFLAGS, & LIB_DIR and be sure to always build from the top level.
-#
-# To override them from the make commandline, do something like this:
-# $ CROSS_COMPILER=/opt/cegl-1.4/hardhat/devkit/ppc/405/bin/powerpc-linux-
-# $ make \
-#     CROSS_CFLAGS="-mcpu=403 -D__PPC405__" \
-#     LDFLAGS=-static \
-#     LOADLIBES="-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc"
-#
-# Alternately, to override them by editing this file, uncomment the 
-# following lines:
-#   CROSS_COMPILER=/opt/ppc64/powerpc64-linux/bin/powerpc64-linux-
-#   CROSS_CFLAGS= -mpowerpc64
-#   LDFLAGS=-static 
-#   LOADLIBES=-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc
-#   LIB_DIR=/lib64
-#   export LOADLIBES LIB_DIR
-#
-# Or, you can save all your settings into the local 'config.mk' file.
-# The defaults will not be usable in that case; you will need to
-# override things explicitly.
-#
-# uClinux Users: make sure you add -DUCLINUX to your CFLAGS
-#
-# Note: If you override a variable from the commandline all
-# assignments to it in the Makefiles will be ignored. To set it both 
-# in the commandline and in the Makefiles use a dummy variable like in
-# CFLAGS
-
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to