Results 1 to 3 of 3
Hello, there:
I am on a project to migrate some make files from Solaris box (SunOS 5.8 Generic_Virtual sun4v sparc SUNW,T5440) to Linux (Linux 2.6.9-89.0.16.ELsmp #1 SMP Tue Oct 27 ...
- 02-09-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 2
bracket problem when migrating scripts from Solaris to Linux
Hello, there:
I am on a project to migrate some make files from Solaris box (SunOS 5.8 Generic_Virtual sun4v sparc SUNW,T5440) to Linux (Linux 2.6.9-89.0.16.ELsmp #1 SMP Tue Oct 27 03:51:52 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux)
It came to my attention that the make files refer to environment variables in such a way as, for instance, $(JAVAC), using a round bracket. This is where the problem occurs when running it on Linux. Bear in mind this is the env variables, not some variables defined inside the scripts.
I did a test myself, from both boxes I "export TEST=test....", and I tried "echo $TEST", "echo ${TEST}" and "echo $(TEST)". The result: the first two worked on both platforms while the last worked on neither of them (the error message: ksh: TEST: not found).
Both platform are in a ksh session.
I was confused that how come the embeded $(JAVAC) can work on Solaris without complaint?
This is my first time to post a thread in this forum, thanks!
jon
- 02-09-2010 #2
Even if it is an environment variable, it needs
to be stated in the makefile. I don't think make
magically knows variable outside of what's in the makefile.
- 02-18-2010 #3Just Joined!
- Join Date
- Feb 2010
- Posts
- 2
you are right, my bad. Thanks!


Reply With Quote